#1605 fix loading th locale
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user