Skip to content

Commit

Permalink
chore: missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jan 24, 2024
1 parent e4ffeac commit 3db6f16
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
12 changes: 9 additions & 3 deletions src/screens/novel/components/EditInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ const EditInfoModal = ({
alignItems: 'center',
}}
>
<Text style={{ color: theme.onSurfaceVariant }}>Status:</Text>
<Text style={{ color: theme.onSurfaceVariant }}>
{getString('novelScreen.edit.status')}
</Text>
<ScrollView
style={{ marginLeft: 8 }}
horizontal
Expand Down Expand Up @@ -105,7 +107,9 @@ const EditInfoModal = ({
</ScrollView>
</View>
<TextInput
placeholder={`Title: ${novel.name}`}
placeholder={getString('novelScreen.edit.title', {
title: novel.name,
})}
style={{ fontSize: 14 }}
numberOfLines={1}
mode="outlined"
Expand All @@ -114,7 +118,9 @@ const EditInfoModal = ({
dense
/>
<TextInput
placeholder={`Author: ${novel.author}`}
placeholder={getString('novelScreen.edit.author', {
author: novel.author,
})}
style={{ fontSize: 14 }}
numberOfLines={1}
mode="outlined"
Expand Down
13 changes: 8 additions & 5 deletions strings/languages/en/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@
"showUpdatesInTheNav": "Show updates in the nav",
"theme": {
"default": "Default",
"lavender": "Lavender",
"midnightDusk": "Midnight Dusk",
"strawberry": "Strawberry Daiquiri",
"tako": "Tako",
"teal": "Teal",
"turquoise": "Turquoise",
"yotsuba": "Yotsuba",
"lavender": "Lavender",
"strawberry": "Strawberry Daiquiri",
"tako": "Tako"
"yotsuba": "Yotsuba"
}
},
"backup": "Backup",
Expand Down Expand Up @@ -326,9 +326,12 @@
},
"edit": {
"addTag": "Add Tag",
"author": "Author: %{author}",
"cover": "Edit cover",
"info": "Edit info",
"summary": "Description: %{summary}..."
"status": "Status:",
"summary": "Description: %{summary}...",
"title": "Title: %{title}"
},
"inLibaray": "In library",
"jumpToChapterModal": {
Expand Down
7 changes: 5 additions & 2 deletions strings/languages/zh_CN/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"latest": "最新",
"listEmpty": "从设置中启用语言",
"migration": {
"dialogMessage": "迁移 {0}?",
"dialogMessage": "迁移 %{url}?",
"novelAlreadyInLibrary": "小说已经在书库中",
"selectSource": "选择源",
"selectSourceDesc": "选择要迁移的源"
Expand Down Expand Up @@ -325,9 +325,12 @@
},
"edit": {
"addTag": "添加标签",
"author": "作者: %{author}",
"cover": "编辑封面",
"info": "编辑信息",
"summary": "描述:%{summary}..."
"status": "状态:",
"summary": "描述:%{summary}...",
"title": "标题: %{title}"
},
"inLibaray": "在书库中",
"jumpToChapterModal": {
Expand Down
9 changes: 6 additions & 3 deletions strings/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ export interface StringMap {
'moreScreen.settingsScreen.appearanceScreen.showHistoryInTheNav': 'string';
'moreScreen.settingsScreen.appearanceScreen.showUpdatesInTheNav': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.default': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.lavender': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.midnightDusk': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.strawberry': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.tako': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.teal': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.turquoise': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.yotsuba': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.lavender': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.strawberry': 'string';
'moreScreen.settingsScreen.appearanceScreen.theme.tako': 'string';
'moreScreen.settingsScreen.backup': 'string';
'moreScreen.settingsScreen.backupScreen.createBackupDeprecated': 'string';
'moreScreen.settingsScreen.backupScreen.createBackupDeprecatedDesc': 'string';
Expand Down Expand Up @@ -266,9 +266,12 @@ export interface StringMap {
'novelScreen.download.next5': 'string';
'novelScreen.download.unread': 'string';
'novelScreen.edit.addTag': 'string';
'novelScreen.edit.author': 'string';
'novelScreen.edit.cover': 'string';
'novelScreen.edit.info': 'string';
'novelScreen.edit.status': 'string';
'novelScreen.edit.summary': 'string';
'novelScreen.edit.title': 'string';
'novelScreen.inLibaray': 'string';
'novelScreen.jumpToChapterModal.chapterName': 'string';
'novelScreen.jumpToChapterModal.chapterNumber': 'string';
Expand Down

0 comments on commit 3db6f16

Please sign in to comment.