Add i18n support for zh

This commit is contained in:
Starystars67
2026-04-13 11:52:07 +01:00
parent 1b9d2a0b87
commit 58540763d2
+2 -1
View File
@@ -1,7 +1,7 @@
import { nextTick } from 'vue'
import { createI18n } from 'vue-i18n'
export const SUPPORT_LOCALES = ['en', 'es', 'fr', 'de', 'it', 'ru']
export const SUPPORT_LOCALES = ['en', 'es', 'fr', 'de', 'it', 'ru', 'zh']
export const LANGUAGES = {
en: { name: 'English', code: 'en', flag: 'gb' },
@@ -10,6 +10,7 @@ export const LANGUAGES = {
de: { name: 'Deutsch', code: 'de', flag: 'de' },
it: { name: 'Italiano', code: 'it', flag: 'it' },
ru: { name: 'Русский', code: 'ru', flag: 'ru' },
zh: { name: '中文', code: 'zh', flag: 'cn' },
}
export function setupI18n(options = { locale: 'en' }) {