mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
Configure oxfmt ignorePatterns to exclude non-JS/TS files (md, json, css, yaml, etc.) to match previous Prettier behavior. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8177-chore-configure-oxfmt-to-format-only-JS-TS-Vue-files-2ee6d73d3650815080f3cc8a4a932109) by [Unito](https://www.unito.io) --------- Co-authored-by: Amp <amp@ampcode.com>
42 lines
1.7 KiB
JavaScript
42 lines
1.7 KiB
JavaScript
// This file is intentionally kept in CommonJS format (.cjs)
|
||
// to resolve compatibility issues with dependencies that require CommonJS.
|
||
// Do not convert this file to ESModule format unless all dependencies support it.
|
||
const { defineConfig } = require('@lobehub/i18n-cli')
|
||
|
||
module.exports = defineConfig({
|
||
modelName: 'gpt-4.1',
|
||
splitToken: 1024,
|
||
saveImmediately: true,
|
||
entry: 'src/locales/en',
|
||
entryLocale: 'en',
|
||
output: 'src/locales',
|
||
outputLocales: [
|
||
'zh',
|
||
'zh-TW',
|
||
'ru',
|
||
'ja',
|
||
'ko',
|
||
'fr',
|
||
'es',
|
||
'ar',
|
||
'tr',
|
||
'pt-BR',
|
||
'fa'
|
||
],
|
||
reference: `Special names to keep untranslated: flux, photomaker, clip, vae, cfg, stable audio, stable cascade, stable zero, controlnet, lora, HiDream, Civitai, Hugging Face.
|
||
'latent' is the short form of 'latent space'.
|
||
'mask' is in the context of image processing.
|
||
|
||
IMPORTANT Chinese Translation Guidelines:
|
||
- For 'zh' locale: Use ONLY Simplified Chinese characters (简体中文). Common examples: 节点 (not 節點), 画布 (not 畫布), 图像 (not 圖像), 选择 (not 選擇), 减小 (not 減小).
|
||
- For 'zh-TW' locale: Use ONLY Traditional Chinese characters (繁體中文) with Taiwan-specific terminology.
|
||
- NEVER mix Simplified and Traditional Chinese characters within the same locale.
|
||
|
||
IMPORTANT Persian Translation Guidelines:
|
||
- For 'fa' locale: Use formal Persian (فارسی رسمی) for professional tone throughout the UI.
|
||
- Keep commonly used technical terms in English when they are standard in Persian software (e.g., node, workflow).
|
||
- Use Arabic-Indic numerals (۰-۹) for numbers where appropriate.
|
||
- Maintain consistency with terminology used in Persian software and design applications.
|
||
`
|
||
})
|