44 lines
937 B
JavaScript
44 lines
937 B
JavaScript
import { createI18n } from 'vue-i18n'
|
|
import Cookies from 'js-cookie'
|
|
import zh_HK from '@/lang/zh_HK/index.js'
|
|
/**
|
|
import en_US from '@/lang/en_US/index.js'
|
|
mport es_ES from '@/lang/es_ES/index.js'
|
|
import pt_BR from '@/lang/pt_BR/index.js'
|
|
import hi_IN from '@/lang/hi_IN/index.js'
|
|
import ru_RU from '@/lang/ru_RU/index.js'
|
|
import ar_SA from '@/lang/ar_SA/index.js'
|
|
import fr_FR from '@/lang/fr_FR/index.js'**/
|
|
|
|
// 多语言切换已禁用:全站固定繁体中文
|
|
let locale = 'zh_HK'
|
|
|
|
/** 各语言在界面上的显示名称 */
|
|
export const LOCALE_NAMES = {
|
|
zh_HK: '繁体中文',
|
|
/** en_US: 'English',
|
|
es_ES: 'Español',
|
|
pt_BR: 'Português',
|
|
hi_IN: 'हिन्दी',
|
|
ru_RU: 'Русский',
|
|
ar_SA: 'العربية',
|
|
fr_FR: 'Français'**/
|
|
}
|
|
|
|
const i18n = createI18n({
|
|
globalInjection: true,
|
|
locale,
|
|
messages: {
|
|
zh_HK,
|
|
/** en_US,
|
|
es_ES,
|
|
pt_BR,
|
|
hi_IN,
|
|
ru_RU,
|
|
ar_SA,
|
|
fr_FR**/
|
|
}
|
|
})
|
|
|
|
export default i18n
|