fix: remove TODO tips in locales

This commit is contained in:
jialin
2025-03-17 20:25:03 +08:00
parent 2287196746
commit 08b3c9d1ac
7 changed files with 131 additions and 90 deletions
+4 -14
View File
@@ -24,24 +24,14 @@ To add a new language configuration, follow these steps:
- Open the `.ts` file in the **new directory**.
- For each key-value pair:
- If a translation is available, replace the value with the translated text.
- If no translation is available yet, **replace the value with** `TODO: Translate key "<original-key>"`.
- This ensures that the key is visible for contributors to know exactly what needs to be translated.
- If no translation is available, keep the `English` value as default.
**Example:**
```ts
export default {
'playground.image.mask.upload':
'TODO: Translate key "playground.image.mask.upload"',
'welcome.message': 'TODO: Translate key "welcome.message"'
};
```
- **Important**: The `TODO` message should include the original key in quotes so that contributors can easily identify which key needs translation without needing to look at the code itself.
- **Note**: Keeping the English text as the default ensures the application remains functional even if some translations are missing.
## 4. **Finalize the Configuration**
- Review and ensure all translations are complete.
- If any translations are missing, contributors can later replace `"TODO: Translate key '...'` with the correct translation.
- If any translations are missing, they will default to `English`.
- Your new language configuration is now ready for use!
+13 -6
View File
@@ -81,7 +81,7 @@ export default {
'models.form.filePath': 'Путь к модели',
'models.form.backendVersion': 'Версия бэкенда',
'models.form.backendVersion.tips':
'TODO: Translate key "models.form.backendVersion.tips"',
'To use the desired version of vLLM/llama-box/vox-box, the system will automatically create a virtual environment in the online environment to install the corresponding version. After a GPUStack upgrade, the backend version will remain fixed. {link}',
'models.form.gpuselector': 'Селектор GPU',
'models.form.backend.llamabox':
'Для моделей формата GGUF. Поддержка Linux, macOS и Windows.',
@@ -110,10 +110,17 @@ export default {
'models.table.vllmAcrossworker': 'vLLM между воркерами',
'models.form.releases': 'Релизы',
'models.form.moreparameters': 'Описание параметров',
'models.table.vram.allocated':
'TODO: Translate key "models.table.vram.allocated"',
'models.table.vram.allocated': 'Allocated VRAM',
'models.form.backend.warning':
'TODO: Translate key "models.form.backend.warning"',
'models.form.backend.warning.llamabox':
"TODO: Translate key 'models.form.backend.warning.llamabox'"
'The backend for GGUF format models uses llama-box.',
'models.form.backend.warning.llamabox': `To use the llama-box backend, specify the full path to the model file (e.g.,<span style="font-weight: 700">/data/models/model.gguf</span>). For sharded models, provide the path to the first shard (e.g.,<span style="font-weight: 700">/data/models/model-00001-of-00004.gguf</span>).`
};
// ========== To-Do: Translate Keys (Remove After Translation) ==========
// 1. models.form.backendVersion.tips
// 2. models.form.backend.warning
// 3. models.form.backend.warning.llamabox
// 4. models.table.vram.allocated
// ========== End of To-Do List ==========
+11 -3
View File
@@ -137,14 +137,22 @@ export default {
'playground.image.edit': 'Редактировать',
'playground.image.fitview': 'Подогнать размер',
'playground.chat.aithought': 'Рассуждение (CoT)',
'playground.chat.thinking': 'TODO: Translate key "playground.chat.thinking"',
'playground.chat.thinking': 'Thinking...',
'playground.image.mask.uploaded': 'Маска загружена',
'playground.image.mask.upload':
'TODO: Translate key "playground.image.mask.upload"',
'Upload Mask: No additional drawing allowed after upload.',
'playground.params.frequency_penalty.tips': `Число от -2.0 до 2.0. Положительные значения снижают вероятность повторения токенов, уже часто встречающихся в тексте, уменьшая склонность модели дословно повторять одни и те же фразы.`,
'playground.params.presence_penalty.tips': `Число от -2.0 до 2.0. Положительные значения снижают вероятность повторения любых токенов, присутствующих в тексте, повышая склонность модели к обсуждению новых тем.`,
'playground.image.origin': 'Оригинал',
'playground.image.mask': 'Маска',
'playground.image.negativeMask.tips':
'TODO: Translate key "playground.image.negativeMask.tips"'
'1. After selection, no further masking can be drawn; therefore, you should draw the mask first and then check the option.\n 2. Once a mask image is uploaded, no further masks can be generated.'
};
// ========== To-Do: Translate Keys (Remove After Translation) ==========
// 1. playground.chat.thinking
// 2. playground.image.mask.upload
// 3. playground.image.negativeMask.tips
// ========== End of To-Do List ==========