Merge pull request #398 from FeiLiuEM/ui-i18n
i18n: translate the interface below the menu bar (panels, dialogs, tooltips) # Conflicts: # crates/ui-egui/src/lib.rs # docs/preferences.md
This commit is contained in:
@@ -1579,6 +1579,7 @@ impl eframe::App for EffectcraftApp {
|
||||
// The CJK fallback fonts depend on the interface language, so they follow a change of
|
||||
// Settings ▸ General ▸ Language instead of only the first frame.
|
||||
let language = crate::i18n::language(self);
|
||||
crate::i18n::set_current(language);
|
||||
if !self.styled || self.styled_language != language {
|
||||
theme::install(ctx, &self.tokens, language);
|
||||
self.styled_language = language;
|
||||
|
||||
Reference in New Issue
Block a user