mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-09 10:23:15 +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