mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00

- Fix random sorting issue in RSS articles - Optimize RSS style file - Improve scrollbar styles - Upgrade project dependencies
23 lines
542 B
TypeScript
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()
|