Add lokalise multi reference check to hassfest (#101876)
This commit is contained in:
parent
e4af09d261
commit
0c5b963847
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue