mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Fix public room badge not translating correctly when switching languages
This commit is contained in:
parent
a314b2c275
commit
3f1477f24a
6 changed files with 38 additions and 14 deletions
|
@ -16,7 +16,7 @@ class Localization {
|
|||
Localization.setTranslation(Localization.initialLocale)
|
||||
.then(_ => {
|
||||
console.log("Initial translation successful.");
|
||||
Events.fire("translation-loaded");
|
||||
Events.fire("initial-translation-loaded");
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -38,6 +38,8 @@ class Localization {
|
|||
`System language: ${Localization.systemLocale}`,
|
||||
`Selected language: ${locale}`
|
||||
);
|
||||
|
||||
Events.fire("translation-loaded");
|
||||
}
|
||||
|
||||
static async setLocale(newLocale) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue