mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 17:09:23 +08:00
perf: enable strict ts type checking (#4045)
This commit is contained in:
@@ -15,8 +15,8 @@ const localesMap = loadLocalesMap(modules);
|
||||
* @param lang
|
||||
*/
|
||||
async function loadMessages(lang: SupportedLanguagesType) {
|
||||
const appLocaleMessages = await localesMap[lang]();
|
||||
return appLocaleMessages.default;
|
||||
const appLocaleMessages = await localesMap[lang]?.();
|
||||
return appLocaleMessages?.default;
|
||||
}
|
||||
|
||||
async function setupI18n(app: App, options: LocaleSetupOptions = {}) {
|
||||
|
Reference in New Issue
Block a user