Files
AlgerMusicPlayer/src/i18n/languages.ts

25 lines
614 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 语言配置文件 - 集中管理语言相关的配置
// 语言显示名称映射
export const LANGUAGE_DISPLAY_NAMES: Record<string, string> = {
'zh-CN': '简体中文',
'zh-Hant': '繁體中文',
'en-US': 'English',
'ja-JP': '日本語',
'ko-KR': '한국어'
};
// 默认语言
export const DEFAULT_LANGUAGE = 'zh-CN';
// 回退语言
export const FALLBACK_LANGUAGE = 'en-US';
// 语言排序优先级用于在UI中的显示顺序
export const LANGUAGE_PRIORITY: Record<string, number> = {
'zh-CN': 1,
'zh-Hant': 2,
'en-US': 3,
'ja-JP': 4,
'ko-KR': 5
};