Skip to content

Commit

Permalink
[Fixed] Incorrect Locale configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhPatange committed Jul 12, 2021
1 parent 0005eed commit 07c2789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ jobs:
- name: Building Installer
id: installer
run: |
copy /y XClipper.App\Locales\*.xaml XClipper.App\bin\Release\locales
copy XClipper.App\Locales\*.xaml XClipper.App\bin\Release\locales
del XClipper.App\bin\Release\*.xml
del XClipper.App\bin\Release\*.pdb
del XClipper.App\bin\Release\*.config
echo "::set-output name=production_version::$(${{ github.workspace }}\packager.exe -i exe)"
${{ github.workspace }}\packager.exe -r
scripts\inno\iscc.exe scripts\installer.iss
Expand Down
2 changes: 1 addition & 1 deletion XClipper.App/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ private void CheckForOtherInstance()

private void LoadLanguageResource()
{
foreach (var file in Directory.GetFiles("locales", "*.xaml"))
foreach (var file in Directory.GetFiles($"{BaseDirectory}\\locales", "*.xaml"))
{
LanguageCollection.Add(file);
}
Expand Down

0 comments on commit 07c2789

Please sign in to comment.