mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
feat: giscus i18n
This commit is contained in:
parent
81ca27689f
commit
4c7a74c6c8
3 changed files with 25 additions and 5 deletions
|
@ -19,5 +19,14 @@ export const walineLocaleMap: Record<string, string> = {
|
|||
'ru': 'ru-RU',
|
||||
}
|
||||
|
||||
export const giscusLocaleMap: Record<string, string> = {
|
||||
'zh': 'zh-CN',
|
||||
'zh-tw': 'zh-TW',
|
||||
'ja': 'ja',
|
||||
'en': 'en',
|
||||
'es': 'es',
|
||||
'ru': 'ru',
|
||||
}
|
||||
|
||||
// Supported Languages
|
||||
export const supportedLangs = Object.keys(langMap).flat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue