test: i18n support

This commit is contained in:
radishzzz 2025-01-17 07:31:43 +00:00
parent d2bda0594d
commit 32ffec8480
8 changed files with 340 additions and 6 deletions

32
src/utils/ui.ts Normal file
View file

@ -0,0 +1,32 @@
export const language = {
zh: {
posts: '文章',
tags: '标签',
about: '关于',
},
tw: {
posts: '文章',
tags: '標籤',
about: '關於',
},
ja: {
posts: '記事',
tags: 'タグ',
about: '概要',
},
en: {
posts: 'Posts',
tags: 'Tags',
about: 'About',
},
es: {
posts: 'Posts',
tags: 'Tags',
about: 'Sobre',
},
ru: {
posts: 'Посты',
tags: 'Теги',
about: 'О себе',
},
}