refactor: refacotr preference

This commit is contained in:
vben
2024-06-01 23:15:29 +08:00
parent f7b97e8a83
commit fed47f5e05
139 changed files with 2205 additions and 1450 deletions

View File

@@ -1,4 +1,4 @@
import type { SupportLocale } from '@vben-core/typings';
import type { LocaleSupportType } from '@vben-core/typings';
import type { Locale } from 'vue-i18n';
@@ -44,7 +44,7 @@ function setI18nLanguage(locale: Locale) {
* Load locale messages
* @param lang
*/
async function loadLocaleMessages(lang: SupportLocale) {
async function loadLocaleMessages(lang: LocaleSupportType) {
if (unref(i18n.global.locale) === lang) {
return setI18nLanguage(lang);
}