mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 03:32:51 +02:00

* feat: include pt key entry and content in config files * feat: about-pt.md * feat: update Theme Guide files including pt locale * feat: include portuguese excerpt on Universal Article.md * feat: Theme Guide-pt.md * feat: KaTeX Mathematical Demo-pt.md * fix: update Katex Mathematical Demo-pt.md title * feat: 容忍与自由-pt.md * feat: 故乡-pt.md * fix: missing translation in 故乡-pt.md * feat: 羅生門-pt.md * feat: Theme Color Schemes-pt.md * feat: Markdown Style Guide-pt.md * feat: Markdown Extended Features-pt.md * fix: untranslated tag in 容忍与自由-pt.md * fix: unmatching published date in KaTeX Mathematical Demo-pt.md
25 lines
578 B
TypeScript
25 lines
578 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/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',
|
|
'pt': 'pt-BR',
|
|
}
|
|
|
|
// Supported Languages
|
|
export const supportedLangs = Object.keys(langMap).flat()
|