Skip to content

Commit 78a2ada

Browse files
committed
fix: frontend
1 parent 31ed711 commit 78a2ada

File tree

6 files changed

+199
-270
lines changed

6 files changed

+199
-270
lines changed

xinference/ui/web/ui/src/locales/en.json

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -127,26 +127,19 @@
127127
"mustBeUnique": "{{key}} must be unique",
128128
"addModel": "Add Model",
129129
"addModelDialog": {
130-
"introPrefix": "To add a model, please use",
131-
"platformLinkText": "Model Management Platform",
132-
"introSuffix": " and paste the model's URL",
133-
"example": "Example: The URL for {{modelName}} on the platform is {{modelUrl}}",
134-
"urlLabel": "URL"
135-
},
136-
"loginDialog": {
137-
"title": "No permission to download this model. Please log in and try again.",
138-
"usernameOrEmail": "Username or Email",
139-
"password": "Password",
140-
"login": "Login"
130+
"introPrefix": "To add a model, please go to the",
131+
"platformLinkText": "Xinference Model Hub",
132+
"introSuffix": "and fill in the corresponding model name.",
133+
"modelName": "Model Name",
134+
"modelName.tip": "Please enter the model name",
135+
"placeholder": "e.g. qwen3 (case-sensitive)"
141136
},
137+
"update": "Update",
142138
"error": {
143-
"cannotExtractModelId": "Unable to extract model_id from URL. Please check your input.",
144-
"downloadFailed": "Download failed: {{status}} {{text}}",
139+
"name_not_matched": "No exact model name match found (case-sensitive)",
140+
"downloadFailed": "Download failed",
145141
"requestFailed": "Request failed",
146-
"loginFailedText": "Login failed: {{status}} {{text}}",
147-
"noTokenAfterLogin": "Login succeeded but no token was returned",
148-
"modelPrivate": "This model is private and requires download permission.",
149-
"noPermissionAfterLogin": "The logged-in account does not have permission to download this model. Please contact the administrator or use a different account."
142+
"json_parse_error": "Failed to parse JSON"
150143
}
151144
},
152145

xinference/ui/web/ui/src/locales/ja.json

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -127,26 +127,19 @@
127127
"mustBeUnique": "{{key}} は一意でなければなりません",
128128
"addModel": "モデルを追加",
129129
"addModelDialog": {
130-
"introPrefix": "モデルを追加するには",
131-
"platformLinkText": "モデル管理プラットフォーム",
132-
"introSuffix": "に基づき、対応するURLを入力してください",
133-
"example": "例:{{modelName}} のモデル管理プラットフォーム上のURLは {{modelUrl}} です",
134-
"urlLabel": "URL"
135-
},
136-
"loginDialog": {
137-
"title": "このモデルをダウンロードする権限がありません。ログイン後に再度お試しください",
138-
"usernameOrEmail": "ユーザー名またはメールアドレス",
139-
"password": "パスワード",
140-
"login": "ログイン"
130+
"introPrefix": "モデルを追加するには、",
131+
"platformLinkText": "Xinference モデルセンター",
132+
"introSuffix": "で対応するモデル名を入力してください。",
133+
"modelName": "モデル名",
134+
"modelName.tip": "モデル名を入力してください",
135+
"placeholder": "例:qwen3(大文字と小文字を区別します)"
141136
},
137+
"update": "更新",
142138
"error": {
143-
"cannotExtractModelId": "URLから model_id を抽出できません。入力内容を確認してください",
144-
"downloadFailed": "ダウンロード失敗: {{status}} {{text}}",
145-
"requestFailed": "リクエスト失敗",
146-
"loginFailedText": "ログイン失敗: {{status}} {{text}}",
147-
"noTokenAfterLogin": "ログインは成功しましたが、トークンを取得できませんでした",
148-
"modelPrivate": "このモデルは非公開であり、ダウンロード権限が必要です。",
149-
"noPermissionAfterLogin": "このアカウントにはモデルをダウンロードする権限がありません。管理者に連絡するか、別のアカウントを使用してください。"
139+
"name_not_matched": "完全に一致するモデル名が見つかりません(大文字と小文字を区別します)",
140+
"downloadFailed": "ダウンロードに失敗しました",
141+
"requestFailed": "リクエストに失敗しました",
142+
"json_parse_error": "JSON の解析に失敗しました"
150143
}
151144
},
152145

xinference/ui/web/ui/src/locales/ko.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,18 @@
128128
"addModel": "모델 추가",
129129
"addModelDialog": {
130130
"introPrefix": "모델을 추가하려면",
131-
"platformLinkText": "모델 관리 플랫폼",
132-
"introSuffix": "을(를) 기반으로 해당 URL을 입력하세요",
133-
"example": "예: {{modelName}}의 모델 관리 플랫폼 URL은 {{modelUrl}} 입니다",
134-
"urlLabel": "URL"
135-
},
136-
"loginDialog": {
137-
"title": "이 모델을 다운로드할 권한이 없습니다. 로그인 후 다시 시도하세요",
138-
"usernameOrEmail": "사용자 이름 또는 이메일",
139-
"password": "비밀번호",
140-
"login": "로그인"
131+
"platformLinkText": "Xinference 모델 센터",
132+
"introSuffix": "에서 해당 모델 이름을 입력하세요.",
133+
"modelName": "모델 이름",
134+
"modelName.tip": "모델 이름을 입력하세요",
135+
"placeholder": "예: qwen3 (대소문자를 구분합니다)"
141136
},
137+
"update": "업데이트",
142138
"error": {
143-
"cannotExtractModelId": "URL에서 model_id를 추출할 수 없습니다. 입력을 확인하세요",
144-
"downloadFailed": "다운로드 실패: {{status}} {{text}}",
139+
"name_not_matched": "완전히 일치하는 모델 이름을 찾을 수 없습니다(대소문자 구분)",
140+
"downloadFailed": "다운로드 실패",
145141
"requestFailed": "요청 실패",
146-
"loginFailedText": "로그인 실패: {{status}} {{text}}",
147-
"noTokenAfterLogin": "로그인은 성공했지만 토큰을 가져오지 못했습니다",
148-
"modelPrivate": "이 모델은 비공개이며 다운로드 권한이 필요합니다.",
149-
"noPermissionAfterLogin": "이 계정에는 해당 모델을 다운로드할 권한이 없습니다. 관리자에게 문의하거나 다른 계정을 사용하세요."
142+
"json_parse_error": "JSON 구문 분석에 실패했습니다"
150143
}
151144
},
152145

xinference/ui/web/ui/src/locales/zh.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,18 @@
128128
"addModel": "添加模型",
129129
"addModelDialog": {
130130
"introPrefix": "添加模型需基于",
131-
"platformLinkText": "模型管理平台",
132-
"introSuffix": ",填写模型对应的 URL",
133-
"example": "例:{{modelName}}在模型管理平台上对应的 URL 如下 {{modelUrl}}",
134-
"urlLabel": "URL"
135-
},
136-
"loginDialog": {
137-
"title": "暂无权限下载该模型,登录后重新尝试下载",
138-
"usernameOrEmail": "用户名或邮箱",
139-
"password": "密码",
140-
"login": "登录"
131+
"platformLinkText": "Xinference 模型中心",
132+
"introSuffix": ",填写模型对应的名称",
133+
"modelName": "模型名称",
134+
"modelName.tip": "请输入模型名称",
135+
"placeholder": "例如:qwen3(需大小写完全匹配)"
141136
},
137+
"update": "更新",
142138
"error": {
143-
"cannotExtractModelId": "无法从 URL 中提取 model_id,请检查输入",
144-
"downloadFailed": "下载失败: {{status}} {{text}}",
139+
"name_not_matched": "未找到完全匹配的模型名称(需大小写一致)",
140+
"downloadFailed": "下载失败",
145141
"requestFailed": "请求失败",
146-
"loginFailedText": "登录失败: {{status}} {{text}}",
147-
"noTokenAfterLogin": "登录成功但未获取到 token",
148-
"modelPrivate": "该模型为私有,需要具有下载权限。",
149-
"noPermissionAfterLogin": "该登录账户暂无权限下载该模型,请联系管理员或更换账户。"
142+
"json_parse_error": "JSON 解析失败"
150143
}
151144
},
152145

0 commit comments

Comments
 (0)