update localization

This commit is contained in:
TheLastScrub
2023-07-29 10:31:59 -07:00
parent 6568d58ca8
commit 328f2a5f65
7 changed files with 26 additions and 7 deletions
+5 -1
View File
@@ -8,13 +8,17 @@ export function localizeWithFallback(key, fallback){
return translatedValue;
}
else{
console.warn(`Untranslated localization key '${key}'.`);
// can't have single quotes in a handlebars string literal input, so sort of hack in an escape character for them.
fallback = fallback.replace("'", "'");
return fallback;
}
}
catch(ex){
console.log(ex);
console.warn(ex);
return fallback;
}
}