mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
change cultural info when switching language
This commit is contained in:
parent
a87cea7e6f
commit
aac60eaa24
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ using Flow.Launcher.Infrastructure;
|
||||||
using Flow.Launcher.Infrastructure.Logger;
|
using Flow.Launcher.Infrastructure.Logger;
|
||||||
using Flow.Launcher.Infrastructure.UserSettings;
|
using Flow.Launcher.Infrastructure.UserSettings;
|
||||||
using Flow.Launcher.Plugin;
|
using Flow.Launcher.Plugin;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Flow.Launcher.Core.Resource
|
namespace Flow.Launcher.Core.Resource
|
||||||
{
|
{
|
||||||
|
|
@ -96,7 +97,7 @@ namespace Flow.Launcher.Core.Resource
|
||||||
}
|
}
|
||||||
UpdatePluginMetadataTranslations();
|
UpdatePluginMetadataTranslations();
|
||||||
Settings.Language = language.LanguageCode;
|
Settings.Language = language.LanguageCode;
|
||||||
|
CultureInfo.CurrentCulture = new CultureInfo(language.LanguageCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool PromptShouldUsePinyin(string languageCodeToSet)
|
public bool PromptShouldUsePinyin(string languageCodeToSet)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue