From c4676183b5c43bf071fa063ae92b2eda8599e6b0 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Fri, 25 Sep 2026 18:46:31 +0800 Subject: [PATCH] i18n: translate huggingfaceApiKey settings strings in all locales Fill the six settings.huggingfaceApiKey* placeholders left by the HF access-token feature in all 9 locales, reusing each locale's existing civitaiApiKey* status renderings; document the new terminology (access token, gated repository) in the translation guidelines. --- docs/i18n-translation-guidelines.md | 14 ++++++++++++++ locales/de.json | 12 ++++++------ locales/es.json | 12 ++++++------ locales/fr.json | 12 ++++++------ locales/he.json | 12 ++++++------ locales/ja.json | 12 ++++++------ locales/ko.json | 12 ++++++------ locales/ru.json | 12 ++++++------ locales/zh-CN.json | 12 ++++++------ locales/zh-TW.json | 12 ++++++------ 10 files changed, 68 insertions(+), 54 deletions(-) diff --git a/docs/i18n-translation-guidelines.md b/docs/i18n-translation-guidelines.md index 4254fb4c..f92c577b 100644 --- a/docs/i18n-translation-guidelines.md +++ b/docs/i18n-translation-guidelines.md @@ -365,6 +365,20 @@ in `en`, not "Enrich HF Metadata": they cover ModelScope as well, so no locale m an `HF` qualifier in `loras.contextMenu.enrichHfAgent` / `loras.bulkOperations.enrichHfAgent` (the key names keep the historical `Hf`; only the values changed). +The gated/private-repository download support added `settings.huggingfaceApiKey*` (label, +placeholder, help, and the three status strings). "Access token" renderings, and the status +strings reuse each locale's existing `civitaiApiKey*` forms ("Configured" / "Not configured" / +"Set up") verbatim: + +| Term | Rendering | +|---|---| +| access token | zh-CN 访问令牌 · zh-TW 存取權杖 · ja アクセストークン · ko 액세스 토큰 · fr jeton d'accès · de Access Token (Latin, like `CivitAI API Key`) · es token de acceso · ru токен доступа · he אסימון גישה | +| gated repository | zh-CN 受限(gated)仓库 · zh-TW 受限(gated)倉庫 · ja ゲート付きリポジトリ · ko 게이트가 설정된 저장소 · fr dépôt restreint (gated) · de gated Repository (loanword) · es repositorio restringido (gated) · ru закрытый (gated) репозиторий · he מאגר מוגבל (gated) | + +The help text tells the user to create a **read-only** token at +`huggingface.co/settings/tokens` and to accept the repository's terms on its page first — +keep both clauses: a token alone does not unlock a gated repository. + ### Folder sidebar feature (create / rename / delete folders, empty folders, view options) The model-root sidebar manages on-disk folders. "Folder" reuses the noun already fixed in §2 diff --git a/locales/de.json b/locales/de.json index 38c89488..c2a4a3bd 100644 --- a/locales/de.json +++ b/locales/de.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "Konfiguriert", "civitaiApiKeyNotConfigured": "Nicht konfiguriert", "civitaiApiKeySet": "Einrichten", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Hugging Face Access Token", + "huggingfaceApiKeyPlaceholder": "Geben Sie Ihren Hugging Face Access Token ein", + "huggingfaceApiKeyHelp": "Erforderlich für Downloads aus gated oder privaten Hugging Face Repositories. Erstellen Sie ein Read-only-Token unter huggingface.co/settings/tokens und akzeptieren Sie zuerst die Nutzungsbedingungen des Repositories auf dessen Seite.", + "huggingfaceApiKeyConfigured": "Konfiguriert", + "huggingfaceApiKeyNotConfigured": "Nicht konfiguriert", + "huggingfaceApiKeySet": "Einrichten", "civitaiHost": { "label": "CivitAI-Host", "help": "Wählen Sie aus, welche CivitAI-Seite geöffnet wird, wenn Sie „View on CivitAI“-Links verwenden.", diff --git a/locales/es.json b/locales/es.json index dc574770..b8a2a25b 100644 --- a/locales/es.json +++ b/locales/es.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "Configurado", "civitaiApiKeyNotConfigured": "No configurado", "civitaiApiKeySet": "Configurar", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Token de acceso de Hugging Face", + "huggingfaceApiKeyPlaceholder": "Introduce tu token de acceso de Hugging Face", + "huggingfaceApiKeyHelp": "Necesario para descargar de repositorios de Hugging Face restringidos (gated) o privados. Crea un token de solo lectura en huggingface.co/settings/tokens y acepta primero los términos del repositorio en su página.", + "huggingfaceApiKeyConfigured": "Configurado", + "huggingfaceApiKeyNotConfigured": "No configurado", + "huggingfaceApiKeySet": "Configurar", "civitaiHost": { "label": "Host de CivitAI", "help": "Elige qué sitio de CivitAI se abre al usar los enlaces de \"View on CivitAI\".", diff --git a/locales/fr.json b/locales/fr.json index 7c4c8e22..adabe9a7 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "Configuré", "civitaiApiKeyNotConfigured": "Non configuré", "civitaiApiKeySet": "Configurer", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Jeton d'accès Hugging Face", + "huggingfaceApiKeyPlaceholder": "Entrez votre jeton d'accès Hugging Face", + "huggingfaceApiKeyHelp": "Nécessaire pour télécharger depuis des dépôts Hugging Face restreints (gated) ou privés. Créez un jeton en lecture seule sur huggingface.co/settings/tokens, puis acceptez d'abord les conditions du dépôt sur sa page.", + "huggingfaceApiKeyConfigured": "Configuré", + "huggingfaceApiKeyNotConfigured": "Non configuré", + "huggingfaceApiKeySet": "Configurer", "civitaiHost": { "label": "Hôte CivitAI", "help": "Choisissez quel site CivitAI s'ouvre lorsque vous utilisez les liens « View on CivitAI ».", diff --git a/locales/he.json b/locales/he.json index 43e1d3d8..203e0ca4 100644 --- a/locales/he.json +++ b/locales/he.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "מוגדר", "civitaiApiKeyNotConfigured": "לא מוגדר", "civitaiApiKeySet": "הגדר", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "אסימון גישה של Hugging Face", + "huggingfaceApiKeyPlaceholder": "הזן את אסימון הגישה שלך מ-Hugging Face", + "huggingfaceApiKeyHelp": "נדרש להורדה ממאגרי Hugging Face מוגבלים (gated) או פרטיים. צור אסימון לקריאה-בלבד בכתובת huggingface.co/settings/tokens ואשר תחילה את תנאי המאגר בעמוד שלו.", + "huggingfaceApiKeyConfigured": "מוגדר", + "huggingfaceApiKeyNotConfigured": "לא מוגדר", + "huggingfaceApiKeySet": "הגדר", "civitaiHost": { "label": "מארח CivitAI", "help": "בחר איזה אתר של CivitAI ייפתח בעת שימוש בקישורי \"View on CivitAI\".", diff --git a/locales/ja.json b/locales/ja.json index f80860da..8f99755c 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "設定済み", "civitaiApiKeyNotConfigured": "未設定", "civitaiApiKeySet": "設定", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Hugging Face アクセストークン", + "huggingfaceApiKeyPlaceholder": "Hugging Face アクセストークンを入力してください", + "huggingfaceApiKeyHelp": "ゲート付きまたはプライベートな Hugging Face リポジトリからダウンロードする際に必要です。huggingface.co/settings/tokens で読み取り専用トークンを作成し、先にリポジトリのページで利用条件に同意してください。", + "huggingfaceApiKeyConfigured": "設定済み", + "huggingfaceApiKeyNotConfigured": "未設定", + "huggingfaceApiKeySet": "設定", "civitaiHost": { "label": "CivitAI ホスト", "help": "「View on CivitAI」リンクを使うときに開く CivitAI サイトを選択します。", diff --git a/locales/ko.json b/locales/ko.json index 61ca7716..35e558f9 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "설정됨", "civitaiApiKeyNotConfigured": "설정되지 않음", "civitaiApiKeySet": "설정", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Hugging Face 액세스 토큰", + "huggingfaceApiKeyPlaceholder": "Hugging Face 액세스 토큰을 입력하세요", + "huggingfaceApiKeyHelp": "게이트가 설정된 또는 비공개 Hugging Face 저장소에서 다운로드할 때 필요합니다. huggingface.co/settings/tokens에서 읽기 전용 토큰을 만들고, 먼저 저장소 페이지에서 이용 약관에 동의하세요.", + "huggingfaceApiKeyConfigured": "설정됨", + "huggingfaceApiKeyNotConfigured": "설정되지 않음", + "huggingfaceApiKeySet": "설정", "civitaiHost": { "label": "CivitAI 호스트", "help": "\"View on CivitAI\" 링크를 사용할 때 어떤 CivitAI 사이트를 열지 선택합니다.", diff --git a/locales/ru.json b/locales/ru.json index 309e913a..2d8e8552 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "Настроен", "civitaiApiKeyNotConfigured": "Не настроен", "civitaiApiKeySet": "Настроить", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Токен доступа Hugging Face", + "huggingfaceApiKeyPlaceholder": "Введите ваш токен доступа Hugging Face", + "huggingfaceApiKeyHelp": "Требуется для загрузки из закрытых (gated) или приватных репозиториев Hugging Face. Создайте токен только для чтения на huggingface.co/settings/tokens и сначала примите условия репозитория на его странице.", + "huggingfaceApiKeyConfigured": "Настроен", + "huggingfaceApiKeyNotConfigured": "Не настроен", + "huggingfaceApiKeySet": "Настроить", "civitaiHost": { "label": "Хост CivitAI", "help": "Выберите, какой сайт CivitAI будет открываться при использовании ссылок «View on CivitAI».", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 82b74e00..84a730b7 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "已配置", "civitaiApiKeyNotConfigured": "未配置", "civitaiApiKeySet": "设置", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Hugging Face 访问令牌", + "huggingfaceApiKeyPlaceholder": "请输入你的 Hugging Face 访问令牌", + "huggingfaceApiKeyHelp": "从受限(gated)或私有 Hugging Face 仓库下载时需要。请在 huggingface.co/settings/tokens 创建只读令牌,并先在该仓库页面同意其条款。", + "huggingfaceApiKeyConfigured": "已配置", + "huggingfaceApiKeyNotConfigured": "未配置", + "huggingfaceApiKeySet": "设置", "civitaiHost": { "label": "CivitAI 站点", "help": "选择使用“在 CivitAI 中查看”时默认打开的 CivitAI 站点。", diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 643fa965..3e536578 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -325,12 +325,12 @@ "civitaiApiKeyConfigured": "已設定", "civitaiApiKeyNotConfigured": "未設定", "civitaiApiKeySet": "設定", - "huggingfaceApiKey": "[TODO: Translate] Hugging Face Access Token", - "huggingfaceApiKeyPlaceholder": "[TODO: Translate] Enter your Hugging Face access token", - "huggingfaceApiKeyHelp": "[TODO: Translate] Required to download from gated or private Hugging Face repositories. Create a read-only token at huggingface.co/settings/tokens, and accept the repository's terms on its page first.", - "huggingfaceApiKeyConfigured": "[TODO: Translate] Configured", - "huggingfaceApiKeyNotConfigured": "[TODO: Translate] Not configured", - "huggingfaceApiKeySet": "[TODO: Translate] Set up", + "huggingfaceApiKey": "Hugging Face 存取權杖", + "huggingfaceApiKeyPlaceholder": "請輸入您的 Hugging Face 存取權杖", + "huggingfaceApiKeyHelp": "從受限(gated)或私有 Hugging Face 倉庫下載時需要。請在 huggingface.co/settings/tokens 建立唯讀權杖,並先在該倉庫頁面同意其條款。", + "huggingfaceApiKeyConfigured": "已設定", + "huggingfaceApiKeyNotConfigured": "未設定", + "huggingfaceApiKeySet": "設定", "civitaiHost": { "label": "CivitAI 站點", "help": "選擇使用「在 CivitAI 中查看」時預設開啟的 CivitAI 站點。",