From ebbff358a05cf257cfe410149e762e33fa9c873b Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 11 Dec 2024 12:13:39 -0800 Subject: [PATCH] [i18n] Fix untranslated dataTypes in ru (#1879) --- .i18nrc.cjs | 8 ++----- src/locales/ru/main.json | 48 ++++++++++++++++++++-------------------- 2 files changed, 26 insertions(+), 30 deletions(-) diff --git a/.i18nrc.cjs b/.i18nrc.cjs index df31939b5..4a37bda27 100644 --- a/.i18nrc.cjs +++ b/.i18nrc.cjs @@ -4,14 +4,10 @@ const { defineConfig } = require('@lobehub/i18n-cli'); module.exports = defineConfig({ + modelName: 'gpt-4', entry: 'src/locales/en', entryLocale: 'en', output: 'src/locales', outputLocales: ['zh', 'ru', 'ja', 'ko'], - reference: `Keep following model names untranslated: - - flux - - photomaker - - clip - - vae - ` + reference: `Special names to keep untranslated: flux, photomaker, clip, vae` }); diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index b21454a02..079bbac63 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -9,36 +9,36 @@ "yellow": "Желтый" }, "dataTypes": { - "AUDIO": "AUDIO", - "BOOLEAN": "BOOLEAN", + "AUDIO": "АУДИО", + "BOOLEAN": "БУЛЕВО", "CLIP": "CLIP", "CLIP_VISION": "CLIP_VISION", "CLIP_VISION_OUTPUT": "CLIP_VISION_OUTPUT", - "COMBO": "COMBO", - "CONDITIONING": "CONDITIONING", - "CONTROL_NET": "CONTROL_NET", - "FLOAT": "FLOAT", - "FLOATS": "FLOATS", + "COMBO": "КОМБО", + "CONDITIONING": "КОНДИЦИОНИРОВАНИЕ", + "CONTROL_NET": "СЕТЬ УПРАВЛЕНИЯ", + "FLOAT": "ПЛАВАЮЩИЙ", + "FLOATS": "ПЛАВАЮЩИЕ", "GLIGEN": "GLIGEN", - "GUIDER": "GUIDER", - "HOOKS": "HOOKS", - "HOOK_KEYFRAMES": "HOOK_KEYFRAMES", - "IMAGE": "IMAGE", - "INT": "INT", - "LATENT": "LATENT", - "LATENT_OPERATION": "LATENT_OPERATION", - "MASK": "MASK", - "MODEL": "MODEL", - "NOISE": "NOISE", + "GUIDER": "РУКОВОДИТЕЛЬ", + "HOOKS": "КРЮКИ", + "HOOK_KEYFRAMES": "КЛЮЧЕВЫЕ КАДРЫ КРЮКА", + "IMAGE": "ИЗОБРАЖЕНИЕ", + "INT": "ЦЕЛОЕ", + "LATENT": "ЛАТЕНТНЫЙ", + "LATENT_OPERATION": "ЛАТЕНТНАЯ ОПЕРАЦИЯ", + "MASK": "МАСКА", + "MODEL": "МОДЕЛЬ", + "NOISE": "ШУМ", "PHOTOMAKER": "PHOTOMAKER", - "SAMPLER": "SAMPLER", - "SIGMAS": "SIGMAS", - "STRING": "STRING", - "STYLE_MODEL": "STYLE_MODEL", - "TIMESTEPS_RANGE": "TIMESTEPS_RANGE", - "UPSCALE_MODEL": "UPSCALE_MODEL", + "SAMPLER": "СЭМПЛЕР", + "SIGMAS": "СИГМЫ", + "STRING": "СТРОКА", + "STYLE_MODEL": "МОДЕЛЬ СТИЛЯ", + "TIMESTEPS_RANGE": "ДИАПАЗОН ВРЕМЕННЫХ ШАГОВ", + "UPSCALE_MODEL": "МОДЕЛЬ УВЕЛИЧЕНИЯ", "VAE": "VAE", - "WEBCAM": "WEBCAM" + "WEBCAM": "ВЕБ-КАМЕРА" }, "desktopMenu": { "confirmReinstall": "Это очистит ваш файл extra_models_config.yaml и начнет установку заново. Вы уверены?",