mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 22:03:50 +02:00
Clean up keyboard bindings and reload locale
Co-Authored-By: kubectl <me@kube.moe>
This commit is contained in:
@@ -20,4 +20,11 @@ const i18n = createI18n({
|
||||
fallbackWarn: false
|
||||
});
|
||||
|
||||
export { i18n };
|
||||
async function updateLocalizedStrings() {
|
||||
const newStrings = await getLocalizationStrings();
|
||||
Object.entries(newStrings).forEach(([key, value]) => {
|
||||
i18n.global.setLocaleMessage(key.replaceAll('_', '-'), value);
|
||||
});
|
||||
}
|
||||
|
||||
export { i18n, updateLocalizedStrings };
|
||||
|
||||
Reference in New Issue
Block a user