mirror of
https://github.com/home-assistant/core.git
synced 2026-09-12 11:38:47 +01:00
Translation fixes and tweaks (#34489)
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
co-authored by
Martin Hjelmare
parent
96649a7e27
commit
e9ff1940d6
@@ -259,8 +259,7 @@ def validate_translation_file(config: Config, integration: Integration, all_stri
|
||||
search = search[key]
|
||||
key = parts.pop(0)
|
||||
|
||||
if parts:
|
||||
print(key, list(search))
|
||||
if parts or key not in search:
|
||||
integration.add_error(
|
||||
"translations",
|
||||
f"{reference['source']} contains invalid reference {reference['ref']}: Could not find {key}",
|
||||
|
||||
Reference in New Issue
Block a user