add lose commit Traditional Chinese locale file

This commit is contained in:
crazy
2022-08-01 10:53:39 -05:00
committed by Umputun
parent 86d059bf99
commit 27b28dba0d
@@ -54,6 +54,11 @@ export async function loadLocale(locale: string): Promise<Record<string, string>
if (locale === 'ar') {
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 enMessages;
}