Files
sure/config
6d6dac44f3 fix(i18n): remove duplicate locale keys and guard with a regression test (#2789)
* fix(i18n): remove duplicate locale keys that shadow translations

YAML resolves duplicate keys by silently letting the last occurrence
win, so every duplicated key hides an earlier definition without any
warning:

- transactions/{en,de,nl,hu}.yml defined `transactions.merge_duplicate`
  twice: once as a stale flat string ("Yes, merge them") and once as the
  `success`/`failure` mapping the controllers actually read. The flat
  string is dead either way (the show view reads
  `transactions.show.merge_duplicate`), so drop it.
- securities/fr.yml listed five providers (tiingo, eodhd, alpha_vantage,
  mfapi, binance_public) twice inside `securities.providers`.
- settings/api_keys/hu.yml defined
  `settings.api_keys.created.usage_instructions_title` twice.
- imports/en.yml defined `imports.create.ndjson_uploaded` twice.

All removals keep the currently-winning value, so rendered output is
unchanged; this only makes the files match what I18n already loads.

Add a non-skipped I18nTest case that walks the raw Psych AST of every
file under config/locales and fails on same-level duplicate keys, so
shadowed translations can't sneak back in.

Fixes #1506
Fixes #1502

* Fix linter / merge errors

* fix(i18n): repair duplicate locale regression test

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: rsnetworkinginc <rsnetworkinginc@users.noreply.github.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: Juan José Mata <jjmata@jjmata.com>
Co-authored-by: sure-admin <sure-admin@splashblot.com>
2026-08-22 09:37:30 +02:00
..