mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00

* refactor: separate rss and atom generation, optimize back button logic, remove redundant whitespace in component styles * fix: add missing <published> tag in atom feed
25 lines
590 B
TypeScript
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()
|