8000 i18n: internationalize remaining hardcoded display strings by nlminh · Pull Request #2 · nlminh/Toonflow-web · GitHub
[go: up one dir, main page]

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/locales/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1825,5 +1825,22 @@
"text": "Page not found",
"backHome": "Back to home"
}
},
"project": {
"manual": {
"prefix": "Prefix",
"character": "Character",
"characterDerivative": "Character Derivative",
"prop": "Prop",
"propDerivative": "Prop Derivative",
"scene": "Scene",
"sceneDerivative": "Scene Derivative",
"storyboard": "Storyboard",
"storyboardVideo": "Storyboard Video",
"techniqueDirectorPlanning": "Technique - Director Planning",
"techniqueStoryboardTableDesign": "Technique - Storyboard Table Design",
"directorPlanning": "Director Planning",
"storyboardTable": "Storyboard Table"
}
}
}
17 changes: 17 additions & 0 deletions src/locales/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1962,5 +1962,22 @@
"text": "页面不存在",
"backHome": "返回首页"
}
},
"project": {
"manual": {
"prefix": "前缀",
"character": "角色",
"characterDerivative": "角色衍生",
"prop": "道具",
"propDerivative": "道具衍生",
"scene": "场景",
"sceneDerivative": "场景衍生",
"storyboard": "分镜",
"storyboardVideo": "分镜视频",
"techniqueDirectorPlanning": "技法-导演规划",
"techniqueStoryboardTableDesign": "技法-分镜表设计",
"directorPlanning": "导演规划",
"storyboardTable": "分镜表"
}
}
}
17 changes: 17 additions & 0 deletions src/locales/language/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1673,5 +1673,22 @@
"text": "頁面不存在",
"backHome": "返回首頁"
}
},
"project": {
"manual": {
"prefix": "前綴",
"character": "角色",
"characterDerivative": "角色衍生",
"prop": "道具",
"propDerivative": "道具衍生",
"scene": "場景",
"sceneDerivative": "場景衍生",
"storyboard": "分鏡",
"storyboardVideo": "分鏡視頻",
"techniqueDirectorPlanning": "技法-導演規劃",
"techniqueStoryboardTableDesign": "技法-分鏡表設計",
"directorPlanning": "導演規劃",
"storyboardTable": "分鏡表"
}
}
}
26 changes: 13 additions & 13 deletions src/views/project/components/projectDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,17 +367,17 @@ function handlePreview(src: string | undefined) {

const DEFAULT_TAB_DATA: () => Data[] = () => [
{ label: "README", value: "README", data: "" },
{ label: "前缀", value: "prefix", data: "" },
{ label: "角色", value: "art_character", data: "" },
{ label: "角色衍生", value: "art_character_derivative", data: "" },
{ label: "道具", value: "art_prop", data: "" },
{ label: "道具衍生", value: "art_prop_derivative", data: "" },
{ label: "场景", value: "art_scene", data: "" },
{ label: "场景衍生", value: "art_scene_derivative", data: "" },
{ label: "分镜", value: "director_storyboard", data: "" },
{ label: "分镜视频", value: "art_storyboard_video", data: "" },
{ label: "技法-导演规划", value: "director_planning_style", data: "" },
{ label: "技法-分镜表设计", value: "director_storyboard_table_style", data: "" },
{ label: $t("project.manual.prefix"), value: "prefix", data: "" },
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add manual tab translations for every supported locale

When the selected locale is th-TH, vi-VN, ja-JP, or ru-RU, these new project.manual.* lookups have no entries in the corresponding locale JSON files, even though those locales are registered in src/locales/index.ts. Vue-i18n will therefore fall back to English for the visual/director manual tabs while the rest of the UI is localized, so the internationalization change is incomplete for supported languages.

Useful? React with 👍 / 👎.

{ label: $t("project.manual.character"), value: "art_character", data: "" },
{ label: $t("project.manual.characterDerivative"), value: "art_character_derivative", data: "" },
{ label: $t("project.manual.prop"), value: "art_prop", data: "" },
{ label: $t("project.manual.propDerivative"), value: "art_prop_derivative", data: "" },
{ label: $t("project.manual.scene"), value: "art_scene", data: "" },
{ label: $t("project.manual.sceneDerivative"), value: "art_scene_derivative", data: "" },
{ label: $t("project.manual.storyboard"), value: "director_storyboard", data: "" },
{ label: $t("project.manual.storyboardVideo"), value: "art_storyboard_video", data: "" },
{ label: $t("project.manual.techniqueDirectorPlanning"), value: "director_planning_style", data: "" },
{ label: $t("project.manual.techniqueStoryboardTableDesign"), value: "director_storyboard_table_style", data: "" },
];

const isEdit = computed(() => !!props.projectData);
Expand Down Expand Up @@ -709,8 +709,8 @@ interface DirectorManualItem {
}
const DIRECTOR_DEFAULT_TAB_DATA: () => Data[] = () => [
{ label: "README", value: "README", data: "" },
{ label: "导演规划", value: "director_planning_narrative", data: "" },
{ label: "分镜表", value: "director_storyboard_table_narrative", data: "" },
{ label: $t("project.manual.directorPlanning"), value: "director_planning_narrative", data: "" },
{ label: $t("project.manual.storyboardTable"), value: "director_storyboard_table_narrative", data: "" },
];
const directorManualForm = ref({ name: "", images: [] as string[], directorManual: "" });
const directorManualLoading = ref(false);
Expand Down
4 changes: 2 additions & 2 deletions src/views/taskList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</div>
<div style="margin-left: 20px">
<t-select :label="$t('workbench.task.stateLabel')" v-model="state">
<t-option key="1" label="进行中" value="1" />
<t-option key="2" label="已完成" value="2" />
<t-option key="1" :label="$t('workbench.task.stateRunning')" value="1" />
<t-option key="2" :label="$t('workbench.task.stateCompleted')" value="2" />
</t-select>
</div>
<t-button style="margin-left: 10px">{{ $t("workbench.task.search") }}</t-button>
Expand Down
0