[General]Support language selection (#34971)

* Language setting

* spellcheck

* Set FileLocksmithContextMenu package version in AppManifest.xml

* Fix ambigious symbol build error

* Fix ambigious symbol build error #2

* Revert unneeded changes

* Improve perf

* try fix ci build
This commit is contained in:
Stefan Markovic
2024-09-25 22:20:15 +02:00
committed by GitHub
parent 2b4b55cfeb
commit 5b616c9eed
38 changed files with 754 additions and 25 deletions

View File

@@ -40,6 +40,12 @@ namespace Peek.UI
/// </summary>
public App()
{
string appLanguage = LanguageHelper.LoadLanguage();
if (!string.IsNullOrEmpty(appLanguage))
{
Microsoft.Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = appLanguage;
}
InitializeComponent();
Logger.InitializeLogger("\\Peek\\Logs");