mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-03 14:20:50 +08:00
add Traditional Chinese translations for all application strings include new language files for artist, history, donation, favorite, login, search, user, common, download, player, settings, comp components update main i18n configuration to include zh-Hant language add zh-Hant option to language switcher component
24 lines
431 B
TypeScript
24 lines
431 B
TypeScript
import { createI18n } from 'vue-i18n';
|
|
|
|
import enUS from './lang/en-US';
|
|
import zhCN from './lang/zh-CN';
|
|
import zhHant from './lang/zh-Hant';
|
|
|
|
const messages = {
|
|
'zh-CN': zhCN,
|
|
'en-US': enUS,
|
|
'zh-Hant': zhHant
|
|
};
|
|
|
|
const i18n = createI18n({
|
|
legacy: false,
|
|
locale: 'zh-CN',
|
|
fallbackLocale: 'en-US',
|
|
messages,
|
|
globalInjection: true,
|
|
silentTranslationWarn: true,
|
|
silentFallbackWarn: true
|
|
});
|
|
|
|
export default i18n;
|