Skip to content

Commit fe40a42

Browse files
committed
feat: remove translator feature from navigation and routing
The translator functionality has been removed from the application, including its navigation item, route configuration, and associated locale translations in both English and Chinese.
1 parent c343e51 commit fe40a42

5 files changed

Lines changed: 2 additions & 259 deletions

File tree

web/src/components/AppShell.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ const navItems = [
181181
{ to: '/dashboard', label: () => t('nav.dashboard'), icon: '🏠' },
182182
{ to: '/apps', label: () => t('nav.apps'), icon: '📱' },
183183
{ to: '/projects', label: () => t('nav.projects'), icon: '🗂️' },
184-
{ to: '/translator', label: () => t('nav.translator'), icon: '📝' },
185184
{ to: '/languages', label: () => t('nav.languages'), icon: '🌐' },
186185
{ to: '/users', label: () => t('nav.users'), icon: '👥' },
187186
{ to: '/subscriptions', label: () => t('nav.subscriptions'), icon: '💳' },

web/src/locales/en.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"dashboard": "Dashboard",
44
"apps": "Apps",
55
"projects": "Projects",
6-
"translator": "Translator",
76
"applocalizations": "App Localizations",
87
"languages": "Languages",
98
"users": "Users",
@@ -214,26 +213,7 @@
214213
"appsCount": "Apps: {count}",
215214
"confirmDelete": "Are you sure you want to delete this project?"
216215
},
217-
"translator": {
218-
"title": "OpenTrans", "subtitle": "Upload xcstrings and translate with OpenAI or Hunyuan.",
219-
"file": "XCStrings file",
220-
"noFile": "No file selected",
221-
"sourceLanguage": "Source language",
222-
"targetLanguages": "Target languages",
223-
"targetPlaceholder": "zh-Hans,ja,ko",
224-
"provider": "Provider",
225-
"concurrency": "Concurrency",
226-
"timeout": "Timeout (seconds)",
227-
"apiKey": "API key",
228-
"model": "Model",
229-
"translate": "Translate",
230-
"translating": "Translating...",
231-
"export": "Export",
232-
"uploading": "Uploading file...",
233-
"translateSubmitted": "Translation job submitted.",
234-
"translateError": "Translation failed.",
235-
"jobId": "Job"
236-
},
216+
237217
"applocalizations": {
238218
"title": "App Localizations",
239219
"sync": "Sync localizations",

web/src/locales/zh.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"dashboard": "仪表板",
44
"apps": "应用",
55
"projects": "项目分组",
6-
"translator": "翻译器",
76
"applocalizations": "应用本地化",
87
"languages": "语言",
98
"users": "用户",
@@ -214,27 +213,7 @@
214213
"appsCount": "应用数量:{count}",
215214
"confirmDelete": "确定要删除该项目吗?"
216215
},
217-
"translator": {
218-
"title": "XCStrings 翻译器",
219-
"subtitle": "上传 xcstrings 并使用 OpenAI 或混元翻译。",
220-
"file": "XCStrings 文件",
221-
"noFile": "未选择文件",
222-
"sourceLanguage": "源语言",
223-
"targetLanguages": "目标语言",
224-
"targetPlaceholder": "zh-Hans,ja,ko",
225-
"provider": "翻译提供商",
226-
"concurrency": "并发",
227-
"timeout": "超时(秒)",
228-
"apiKey": "API 密钥",
229-
"model": "模型",
230-
"translate": "开始翻译",
231-
"translating": "翻译中...",
232-
"export": "导出",
233-
"uploading": "正在上传文件...",
234-
"translateSubmitted": "已提交翻译任务。",
235-
"translateError": "翻译失败。",
236-
"jobId": "任务"
237-
},
216+
238217
"applocalizations": {
239218
"title": "应用本地化",
240219
"sync": "同步本地化",

web/src/router/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Apps from '../views/Apps.vue'
77
import AppWorkspace from '../views/AppWorkspace.vue'
88
import AppLocalizations from '../views/AppLocalizations.vue'
99
import Projects from '../views/Projects.vue'
10-
import Translator from '../views/Translator.vue'
1110
import Users from '../views/Users.vue'
1211
import Subscriptions from '../views/Subscriptions.vue'
1312
import Languages from '../views/Languages.vue'
@@ -51,11 +50,6 @@ const routes: RouteRecordRaw[] = [
5150
name: 'Projects',
5251
component: Projects
5352
},
54-
{
55-
path: 'translator',
56-
name: 'Translator',
57-
component: Translator
58-
},
5953
{
6054
path: 'apps/:id',
6155
name: 'AppWorkspace',

web/src/views/Translator.vue

Lines changed: 0 additions & 209 deletions
This file was deleted.

0 commit comments

Comments
 (0)