Skip to content

Mint 3.5.2: templates in your language (id/zh/es) - #41

Merged
juw12 merged 2 commits into
mainfrom
mint-352-template-l10n
Nov 9, 2026
Merged

juw12 merged 2 commits into
mainfrom
mint-352-template-l10n

Conversation

@juw12

@juw12 juw12 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Mint 3.5.2: templates come out in your language.

Problem. Blueprint keywords were English/Indonesian only and blueprint content was English only. The zh home page's own example (网店库存表,绿色) fell through to a generic English "Custom Tracker", and Spanish/Indonesian prompts got English columns.

Fix.

  • zh/es keywords for all 14 blueprints; prompt language detection (zh/id/es/en), falling back to the app language when the prompt gives no clue (budget).
  • localizeSpec(spec, lang) translates title, description, dropdown options, formula string literals, rule/card values, card labels and sample rows. Columns are renamed through renameInFormulas, so formulas, cards and rules stay linked. The lookup is case-insensitive (makeColumn title-cases names), with per-blueprint overrides (rental guest ≠ wedding guest). Check-box Yes/No values are never translated.
  • Custom trackers get native titles and descriptions. The blueprint gallery and "start from blueprint" are localized.
  • core.js holds the data, so the Mint API worker gets it too.

Checks.

  • All 14 blueprints × id/zh/es compute exactly the same card values as English, with no orphaned column references (new test_core assertion).
  • Studio e2e: zh/es generate, tweak, theme and currency all pass.
  • The zh .xlsx export has Chinese tabs and headers, and its formulas point at the right columns.
  • The tweak parser still passes 53/53, and pytest is green (one Windows-only relay socket flake, unrelated).
  • Version 3.5.2: notes in 4 languages, SW caches bumped, desktop version updated.

- core.js: zh/es blueprint keywords; prompt language detection (falls back to the app language);
  localizeSpec renames columns through renameInFormulas and translates titles, descriptions,
  dropdown options, formula literals, rule/card values, card labels and sample rows
  (case-insensitive, per-blueprint overrides); custom trackers get native titles/descriptions
- app.js: generate() gets the app language; blueprint gallery and 'start from blueprint' localized
- test_core: every blueprint x id/zh/es computes the same cards as English; detection cases
- version 3.5.2 (notes in 4 languages), SW caches, desktop version, README
@juw12
juw12 merged commit 0087df0 into main Nov 9, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants