blog/src/i18n/config.ts
radishzz 4d3ce1f73f
chore: remove portuguese preview from the demo site (#23)
* refactor: separate rss and atom generation, optimize back button logic, remove redundant whitespace in component styles

* fix:  add missing <published> tag in atom feed
2025-05-10 06:44:59 +01:00

25 lines
590 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'],
'pt': ['pt-BR'],
}
// Waline Language Map
// https://waline.js.org/en/guide/features/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',
'pt': 'pt-BR',
}
// Supported Languages
export const supportedLangs = Object.keys(langMap).flat()