--- description: "Use when editing hint text or other UI strings in localization JSON files; follow the ordered rules below for consistent formatting." name: "Hint Typography Guidelines" applyTo: "ui/locale/*.json" --- # Hint Typography Guidelines Hint strings render as HTML. Use this small set of inline tags to keep hints scannable: 1. `` for values: defaults, dropdown enums, specific numerics. Examples: `0.30`, `Karras`, `v_prediction`, `UniPC`. 2. `...` for cross-references to other UI controls by their exact visible label. Examples: `Denoising strength`, `Use init image`, `Images` tab. 3. `` for proper nouns: model families, datasets, technique names. Examples: `SDXL`, `Flux`, `ControlNet`, `YOLO`. 4. `` for literals: paths, filename tokens, command-line snippets to type or use verbatim. Examples: `models/yolo`, `-seg`, `[PROMPT]`. ## Cross-references 1. Use `...` whenever a hint refers to another control by its exact visible label. This includes setting names, tab names, and named buttons. 2. Match the label exactly, including capitalization and spacing; readers look for the same string in the UI. 3. Do not use `` and `` separately for cross-references; always combine them. 4. Generic concept references (`the model`, `the prompt`, `the scheduler`) stay unstyled. ## Tab naming 1. Refer to the unified generation tab as `Images` (the ModernUI label). Do not write "Control tab"; that label only exists in legacy Standard UI. 2. "Control" remains valid as a setting value (`No: Control only`) or as part of a UI element name (`Control input` pane), just not as a tab name. ## Structure 1. `
` for a line break within a paragraph. 2. `

` for a paragraph break. 3. `
- key: description` for a keyed bullet list, used for short enumerations of dropdown values, modes, or numeric brackets. Each bullet's key is bolded; descriptions stay plain. 4. Do not use `
    `, `
  • `, Markdown asterisks, or unicode bullets. ## Common pitfalls 1. Do not bold ad-hoc emphasis; `` is reserved for values and, combined with ``, for cross-references. 2. Do not use `` for filenames, paths, or command tokens; those are literals and use ``. 3. Do not reword the inside of `` blocks; they are literal user-facing strings. 4. Stay ASCII; prefer semicolons or two sentences over em-dashes. The locale file convention is ASCII-only. ## Translation propagation 1. `ui/locale/locale_en.json` is the source of truth. Other `ui/locale/locale_*.json` files are auto-generated by `cli/localize.js`; edit only the English file. 2. Per-locale corrections live in `ui/locale/override_{locale}.json`. ## Validation 1. Validate JSON syntax with `jq empty ui/locale/locale_en.json`. 2. Lint with `pnpm eslint -- ui/locale/locale_en.json` (silent success). 3. See `wiki/Hints.md` for the wiki-facing version of these rules.