Refine i18n support (#236)

This commit is contained in:
Germey authored and GitHub committed 2025-07-27 18:57:31 +08:00
1 parent f256e2059e
commit 0c0eea7483
15 files changed
+139 -186

No files matched your search

+4 -3
View File
@@ -18,12 +18,13 @@
import { defineComponent } from 'vue';
import { ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon } from 'element-plus';
import { ArrowDown } from '@element-plus/icons-vue';
import { SUPPORTED_LOCALES, setI18nLanguage } from '@/i18n';
import { setCookie } from 'typescript-cookie';
import { getDomain } from '@/utils/initializer';
import { I18N_SUPPORTED_LOCALES } from '@/constants/i18n';
import { setI18nLanguage } from '@/i18n';
export default defineComponent({
name: 'LocaleSelector',
name: 'Locale',
components: {
ElDropdown,
ElDropdownMenu,
@@ -33,7 +34,7 @@ export default defineComponent({
},
data() {
return {
locales: SUPPORTED_LOCALES
locales: I18N_SUPPORTED_LOCALES
};
},
computed: {