#1605 fix loading th locale

This commit is contained in:
konstantin krivlenia
2023-03-10 17:20:25 -06:00
committed by Umputun
parent 972ab87247
commit 8bd5c0d163
@@ -55,7 +55,12 @@ export async function loadLocale(locale: string): Promise<Record<string, string>
return import(/* webpackChunkName: "ar" */ '../locales/ar.json').then((res) => res.default).catch(() => enMessages);
}
if (locale === 'zh-tw') {
return import(/* webpackChunkName: "zh-tw" */ '../locales/zh-tw.json').then((res) => res.default).catch(() => enMessages);
return import(/* webpackChunkName: "zh-tw" */ '../locales/zh-tw.json')
.then((res) => res.default)
.catch(() => enMessages);
}
if (locale === 'th') {
return import(/* webpackChunkName: "th" */ '../locales/th.json').then((res) => res.default).catch(() => enMessages);
}
if (locale === 'cs') {
return import(/* webpackChunkName: "cs" */ '../locales/cs.json').then((res) => res.default).catch(() => enMessages);