Commit fe8466c
authored
i18n: backfill the 15 non-English catalogs to 100% coverage (#1514)
* i18n: backfill the 15 non-English catalogs to 100% coverage
The catalogs had drifted 6% behind en.json (245 keys), since only en.json is
typed into t() and nothing in CI fails when another locale lacks a key.
Adds the missing keys for the OGC API - Features layer type, the Earthdata GIS
panel, the Hugging Face panel, the H3 grid plugin, the dashboard indicator
chart, and a handful of smaller surfaces.
Also fills in toolbar.plugin, which maps a plugin id to its menu label.
PluginsMenu falls back to the plugin's English name when the id is absent,
and 25 of the 37 built-in plugins had no entry, so names like H3 Grid and
Flight Simulator rendered English in every locale even though both panels
were fully translated. Where the same name is already translated elsewhere
the existing value is reused; brand names are left as-is.
Keys are inserted in en.json order, so the diff is additive.
* Address CodeRabbit review feedback
- de: lowercase webMapEmpty and addTimeout. Both are thrown as
new Error(labels.X) and interpolated into addError, so English keeps them
as sentence fragments; German was the only cased locale that capitalized
them. CodeRabbit flagged the same pattern in id/tr and asked to capitalize
those, which would be the wrong direction.
- ar/de/es/fr/it/nl/pt/ru: make earthdataGis.showing and h3Plugin.cellCount
count-neutral so they read correctly at 1, which a bare plural noun after
a runtime count does not. showing carries two counts, so i18next plurals
cannot express it and label-style wording is the only fix. Applied to
every locale with numeral agreement, not just the flagged ones.
- ar: metaOwner was a verb phrase; use the publisher label instead.
- it: imperative Aggiungi in the add-data description to match its siblings,
con un URL in urlHint, ID della collection in errorCollection.
- fr/it/pt: reword the RGB band hint; the pt one was also missing its noun.
- ja/zh: bandB now matches the red and green labels next to it.
- ru: complete includeNeighbors, fix pronoun agreement in engineHint.
- tr: Rasterlar without the apostrophe.
* Address CodeRabbit review feedback (round 2)
- ar/de/es/fr/it/nl/pt/ru: make webMapAddedPartial count-neutral. Same
two-count defect as earthdataGis.showing, which the previous commit fixed
while missing this one; added can be 1, so a bare plural noun after it is
wrong.
- es/it/pt: h3Plugin.parent is the hierarchical parent, so "padre"/"pai"
rather than "superior"/"superiore", which reads as spatially above and did
not pair with the "hijas"/"figlie"/"filhas" already used for children.
de/fr/nl/ru were already internally consistent and are unchanged.
- pt: imperative "Adicione" in the add-data description to match its siblings.
- fr: name the noun in h3Plugin.includeNeighbors.
- it: more natural word order in the Earthdata GIS hint.1 parent 4b1cf4f commit fe8466c
16 files changed
Lines changed: 4191 additions & 29 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2412 | 2412 | | |
2413 | 2413 | | |
2414 | 2414 | | |
2415 | | - | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2416 | 2441 | | |
2417 | 2442 | | |
2418 | 2443 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2412 | 2412 | | |
2413 | 2413 | | |
2414 | 2414 | | |
2415 | | - | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2416 | 2441 | | |
2417 | 2442 | | |
2418 | 2443 | | |
| |||
2651 | 2676 | | |
2652 | 2677 | | |
2653 | 2678 | | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
2654 | 2709 | | |
2655 | 2710 | | |
2656 | 2711 | | |
| |||
3985 | 4040 | | |
3986 | 4041 | | |
3987 | 4042 | | |
| 4043 | + | |
3988 | 4044 | | |
3989 | 4045 | | |
3990 | 4046 | | |
| |||
0 commit comments