mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
TankopediaLoadout
This commit is contained in:
1 parent
558a02b6ae
commit
488451d71f
9 files changed
+309
-299
No files matched your search
@@ -2,7 +2,11 @@ import locales from "@blitzkit/i18n/locales.json";
|
||||
import { I18nString } from "@blitzkit/protos";
|
||||
|
||||
export function unwrapper(locale: string) {
|
||||
return function (i18nString: I18nString) {
|
||||
return function (i18nString?: I18nString) {
|
||||
if (i18nString === undefined) {
|
||||
throw new Error("i18nString is undefined");
|
||||
}
|
||||
|
||||
if (locale in i18nString.locales) {
|
||||
return i18nString.locales[locale];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user