blog/src/i18n/config.ts
radishzzz b492e5c262 chore: optimize styles and update dependencies
- Fix random sorting issue in RSS articles
- Optimize RSS style file
- Improve scrollbar styles
- Upgrade project dependencies
2025-04-07 03:23:34 +01:00

23 lines
542 B
TypeScript

// Global Language Map
export const langMap: Record<string, string[]> = {
'zh': ['zh-CN'],
'zh-tw': ['zh-TW'],
'ja': ['ja-JP'],
'en': ['en-US'],
'es': ['es-ES'],
'ru': ['ru-RU'],
}
// Waline Language Map
// https://waline.js.org/guide/i18n.html
export const walineLocaleMap: Record<string, string> = {
'zh': 'zh-CN',
'zh-tw': 'zh-TW',
'ja': 'jp-JP', // Waline uses jp-JP instead of ja-JP
'en': 'en-US',
'es': 'es-ES',
'ru': 'ru-RU',
}
// Supported Languages
export const supportedLangs = Object.keys(langMap).flat()