mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
complete refactor javascript to typescript and reorg frontend files and folders
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
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: "html/locale_*.json, html/override_*.json"
|
||||
applyTo: "ui/locale/*.json"
|
||||
---
|
||||
# Hint Typography Guidelines
|
||||
|
||||
@@ -40,11 +40,11 @@ Hint strings render as HTML. Use this small set of inline tags to keep hints sca
|
||||
|
||||
## Translation propagation
|
||||
|
||||
1. `html/locale_en.json` is the source of truth. Other `html/locale_*.json` files are auto-generated by `cli/localize.js`; edit only the English file.
|
||||
2. Per-locale corrections live in `html/override_{locale}.json`.
|
||||
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 html/locale_en.json`.
|
||||
2. Lint with `pnpm eslint -- html/locale_en.json` (silent success).
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user