2025-01-23 11:02:55 +08:00
|
|
|
import { createI18n } from 'vue-i18n';
|
|
|
|
|
|
|
|
|
|
import enUS from './lang/en-US';
|
|
|
|
|
import zhCN from './lang/zh-CN';
|
feat(i18n): add Traditional Chinese (zh-Hant) localization support
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
2025-07-20 22:53:25 +08:00
|
|
|
import zhHant from './lang/zh-Hant';
|
2025-01-23 11:02:55 +08:00
|
|
|
|
2025-02-19 01:01:43 +08:00
|
|
|
const messages = {
|
|
|
|
|
'zh-CN': zhCN,
|
feat(i18n): add Traditional Chinese (zh-Hant) localization support
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
2025-07-20 22:53:25 +08:00
|
|
|
'en-US': enUS,
|
|
|
|
|
'zh-Hant': zhHant
|
2025-02-19 01:01:43 +08:00
|
|
|
};
|
2025-01-23 11:02:55 +08:00
|
|
|
|
2025-02-19 01:01:43 +08:00
|
|
|
const i18n = createI18n({
|
2025-01-23 11:02:55 +08:00
|
|
|
legacy: false,
|
2025-02-19 01:01:43 +08:00
|
|
|
locale: 'zh-CN',
|
2025-01-23 11:02:55 +08:00
|
|
|
fallbackLocale: 'en-US',
|
2025-02-19 01:01:43 +08:00
|
|
|
messages,
|
2025-01-23 11:02:55 +08:00
|
|
|
globalInjection: true,
|
|
|
|
|
silentTranslationWarn: true,
|
|
|
|
|
silentFallbackWarn: true
|
2025-02-19 01:01:43 +08:00
|
|
|
});
|
2025-01-23 11:02:55 +08:00
|
|
|
|
|
|
|
|
export default i18n;
|