chore: i18n

This commit is contained in:
codytseng
2025-01-12 20:46:07 +08:00
parent 5bf220fa5b
commit 862aeebbf9
4 changed files with 9 additions and 9 deletions

View File

@@ -12,6 +12,6 @@ export default function Title({ parentEvent }: { parentEvent?: Event }) {
<div className="flex-1 w-0 truncate">{parentEvent.content}</div> <div className="flex-1 w-0 truncate">{parentEvent.content}</div>
</div> </div>
) : ( ) : (
t('New post') t('New Note')
) )
} }

View File

@@ -40,8 +40,8 @@ export default function PostEditor({
) : ( ) : (
<Tabs defaultValue="normal" className="space-y-4"> <Tabs defaultValue="normal" className="space-y-4">
<TabsList> <TabsList>
<TabsTrigger value="normal">{t('Normal Post')}</TabsTrigger> <TabsTrigger value="normal">{t('Normal Note')}</TabsTrigger>
<TabsTrigger value="picture">{t('Picture Post')}</TabsTrigger> <TabsTrigger value="picture">{t('Picture Note')}</TabsTrigger>
</TabsList> </TabsList>
<TabsContent value="normal"> <TabsContent value="normal">
<NormalPostContent <NormalPostContent

View File

@@ -2,7 +2,7 @@ export default {
translation: { translation: {
'Welcome! 🥳': 'Welcome! 🥳', 'Welcome! 🥳': 'Welcome! 🥳',
About: 'About', About: 'About',
'New post': 'New post', 'New Note': 'New Note',
Post: 'Post', Post: 'Post',
Home: 'Home', Home: 'Home',
'Relay settings': 'Relay settings', 'Relay settings': 'Relay settings',
@@ -106,7 +106,7 @@ export default {
'Picture note requires images': 'Picture note requires images', 'Picture note requires images': 'Picture note requires images',
Relays: 'Relays', Relays: 'Relays',
image: 'image', image: 'image',
'Normal Post': 'Normal Post', 'Normal Note': 'Normal Note',
'Picture Post': 'Picture Post' 'Picture Note': 'Picture Note'
} }
} }

View File

@@ -2,7 +2,7 @@ export default {
translation: { translation: {
'Welcome! 🥳': '来都来了', 'Welcome! 🥳': '来都来了',
About: '关于', About: '关于',
'New post': '发布新笔记', 'New Note': '发布新笔记',
Post: '发布笔记', Post: '发布笔记',
Home: '主页', Home: '主页',
'Relay settings': '服务器设置', 'Relay settings': '服务器设置',
@@ -106,7 +106,7 @@ export default {
Relays: '服务器', Relays: '服务器',
image: '图片', image: '图片',
Normal: '普通', Normal: '普通',
'Normal Post': '普通笔记', 'Normal Note': '普通笔记',
'Picture Post': '图片笔记' 'Picture Note': '图片笔记'
} }
} }