mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed computation of missing translations
This commit is contained in:
parent
97b4798dd6
commit
109614b612
@ -51,7 +51,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
|
|||||||
# Map names and available translations
|
# Map names and available translations
|
||||||
names[code] = name
|
names[code] = name
|
||||||
known[code] = dict(re.findall(
|
known[code] = dict(re.findall(
|
||||||
r"^ \"([^\"]+)\": \"([^\"]+)\"(?:,|$)?", data,
|
r"^ \"([^\"]+)\": \"([^\"]*)\"(?:,|$)?", data,
|
||||||
re.MULTILINE
|
re.MULTILINE
|
||||||
))
|
))
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
|
|||||||
# Map names and available translations
|
# Map names and available translations
|
||||||
names[code] = name
|
names[code] = name
|
||||||
known[code] = dict(re.findall(
|
known[code] = dict(re.findall(
|
||||||
r"^ \"([^\"]+)\": \"([^\"]+)\"(?:,|$)?", data,
|
r"^ \"([^\"]+)\": \"([^\"]*)\"(?:,|$)?", data,
|
||||||
re.MULTILINE
|
re.MULTILINE
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user