mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add lokalise multi reference check to hassfest (#101876)
This commit is contained in:
parent
e4af09d261
commit
0c5b963847
@ -532,6 +532,11 @@ def validate_translation_file( # noqa: C901
|
||||
"translations",
|
||||
f"{reference['source']} contains invalid reference {reference['ref']}: Could not find {key}",
|
||||
)
|
||||
elif match := re.match(RE_REFERENCE, search[key]):
|
||||
integration.add_error(
|
||||
"translations",
|
||||
f"Lokalise supports only one level of references: \"{reference['source']}\" should point to directly to \"{match.groups()[0]}\"",
|
||||
)
|
||||
|
||||
|
||||
def validate(integrations: dict[str, Integration], config: Config) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user