mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
* fix(i18n): pluralize the memory card import message Replace "save file(s)" with vue-i18n plural forms in en_US and en_GB. The dialog already passes count, which selects the form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): check placeholder parity and fix es_ES placeholders check_i18n_locales.py now fails when a translation's {placeholders} differ from en_US. The check found 33 es_ES strings that dropped a placeholder (usernames, error details, file paths) or used one the code never passes, which renders empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(i18n): derive the language list from the locale folders The language store kept its own list of locales next to the folders that locales/index.ts already discovers, so a new locale had to be registered in both. The store now lists availableLocales and keeps only their display names, and a test fails when a folder has no name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): address Greptile review on #5375 Give memory-card-import-body plural forms in the locales whose "(s)"-style text has a one/other split (de, es, fr, pt_BR, ro, sv, bg) and in cs_CZ's four-form rule. Extract the placeholder comparison into a function, cover it with stdlib unittest tests, and run them in i18n.yml. The locale checker now skips __pycache__. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): type the locale checker for mypy mypy.yml runs strict mypy over frontend/src/locales, which rejected the untyped helpers and tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(i18n): humanizer pass on the i18n skill changes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): handle two-form Czech plurals The cs_CZ plural rule always returned a four-form index, so the 17 cs_CZ strings with only "one | other" forms showed the wrong form for 0 and 1 and threw "Unexpected return type in composer" for counts of 2 or more. Two-form strings now use the one/other split, which also lets memory-card-import-body drop its duplicated segments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>