Browse Source

chore: i18n

imwald
codytseng 1 year ago
parent
commit
862aeebbf9
  1. 2
      src/components/PostEditor/Title.tsx
  2. 4
      src/components/PostEditor/index.tsx
  3. 6
      src/i18n/en.ts
  4. 6
      src/i18n/zh.ts

2
src/components/PostEditor/Title.tsx

@ -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')
) )
} }

4
src/components/PostEditor/index.tsx

@ -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

6
src/i18n/en.ts

@ -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'
} }
} }

6
src/i18n/zh.ts

@ -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': '图片笔记'
} }
} }

Loading…
Cancel
Save