You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(internal): drop two orphaned locale keys and pin the direction that let them in (#2082)
* refactor(internal): drop two locale keys English no longer has
#2043 removed advanced.entity_search_limit.label and .help from en.json,
de, fr, ru, zh-Hans and the baseline. es and it kept them, by two
different routes: es was not one of the catalogs that PR knew about, and
it was written against the older English source and rebased past the
removal.
Neither key renders. build_payload ships them and t() never asks for
them, since every lookup goes through a key en.json declares. Nothing in
src/ or tests/ references either one.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test(i18n): fail when a catalog keeps a message key English dropped
The two orphans this removes got in because every key check here runs
the other way. The ceilings count English keys a locale is missing, and
the baseline hashes English sources only, so a key with no English
counterpart sits outside both. The sibling sections were never exposed:
tool_groups and tools are pinned in both directions against the parsed
tool set, the component catalogs have their own key check, and the
add-on flavors reject a configuration.<key> the schema no longer
declares.
Only the orphan direction is asserted. messages may omit keys — English
is the per-key fallback, and AGENTS.md states the allowance — so
asserting the missing direction here would forbid something the contract
permits. AGENTS.md gains the other half of that sentence.
Also corrects the ceiling comment's denominator, which #2043 left at 421
when it took en.json down to 419.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/ha_mcp/settings_ui/locales/es.json
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -373,8 +373,6 @@
373
373
"advanced.verify_ssl.help": "Desactiva la verificación TLS solo en redes de confianza. Hay que reiniciar.",
374
374
"advanced.fuzzy_threshold.label": "Umbral de la búsqueda difusa",
375
375
"advanced.fuzzy_threshold.help": "Los valores más bajos permiten una coincidencia de entidades más laxa. Rango 0–100.",
376
-
"advanced.entity_search_limit.label": "Límite de resultados de la búsqueda de entidades",
377
-
"advanced.entity_search_limit.help": "Número máximo de entidades que devuelve ha_search_entities. Rango 1–1000.",
378
376
"advanced.automation_config_time_budget.label": "Presupuesto de tiempo para la configuración de automatizaciones (s)",
379
377
"advanced.automation_config_time_budget.help": "Tiempo máximo que la búsqueda profunda dedica a obtener configuraciones de automatizaciones. Rango 1–600. Hay que reiniciar.",
380
378
"advanced.script_config_time_budget.label": "Presupuesto de tiempo para la configuración de scripts (s)",
Copy file name to clipboardExpand all lines: src/ha_mcp/settings_ui/locales/it.json
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -373,8 +373,6 @@
373
373
"advanced.verify_ssl.help": "Disattiva la verifica TLS solo su reti fidate. È necessario il riavvio.",
374
374
"advanced.fuzzy_threshold.label": "Soglia della ricerca approssimata",
375
375
"advanced.fuzzy_threshold.help": "Valori più bassi rendono più permissiva la corrispondenza delle entità. Intervallo 0–100.",
376
-
"advanced.entity_search_limit.label": "Limite dei risultati nella ricerca delle entità",
377
-
"advanced.entity_search_limit.help": "Numero massimo di entità restituite da ha_search_entities. Intervallo 1–1000.",
378
376
"advanced.automation_config_time_budget.label": "Tempo massimo per le configurazioni delle automazioni (s)",
379
377
"advanced.automation_config_time_budget.help": "Tempo massimo che la ricerca approfondita dedica al recupero delle configurazioni delle automazioni. Intervallo 1–600. È necessario il riavvio.",
380
378
"advanced.script_config_time_budget.label": "Tempo massimo per le configurazioni degli script (s)",
0 commit comments