mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-05-19 08:00:30 +00:00
Add i18n support for zh
This commit is contained in:
+2
-1
@@ -1,7 +1,7 @@
|
|||||||
import { nextTick } from 'vue'
|
import { nextTick } from 'vue'
|
||||||
import { createI18n } from 'vue-i18n'
|
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 = {
|
export const LANGUAGES = {
|
||||||
en: { name: 'English', code: 'en', flag: 'gb' },
|
en: { name: 'English', code: 'en', flag: 'gb' },
|
||||||
@@ -10,6 +10,7 @@ export const LANGUAGES = {
|
|||||||
de: { name: 'Deutsch', code: 'de', flag: 'de' },
|
de: { name: 'Deutsch', code: 'de', flag: 'de' },
|
||||||
it: { name: 'Italiano', code: 'it', flag: 'it' },
|
it: { name: 'Italiano', code: 'it', flag: 'it' },
|
||||||
ru: { name: 'Русский', code: 'ru', flag: 'ru' },
|
ru: { name: 'Русский', code: 'ru', flag: 'ru' },
|
||||||
|
zh: { name: '中文', code: 'zh', flag: 'cn' },
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setupI18n(options = { locale: 'en' }) {
|
export function setupI18n(options = { locale: 'en' }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user