Skip to content

Commit 109614b

Browse files
committed
Fixed computation of missing translations
1 parent 97b4798 commit 109614b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

material/.overrides/hooks/translations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
5151
# Map names and available translations
5252
names[code] = name
5353
known[code] = dict(re.findall(
54-
r"^ \"([^\"]+)\": \"([^\"]+)\"(?:,|$)?", data,
54+
r"^ \"([^\"]+)\": \"([^\"]*)\"(?:,|$)?", data,
5555
re.MULTILINE
5656
))
5757

material/partials/languages/ja.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"announce.dismiss": "非表示にします",
1010
"blog.archive": "過去の投稿",
1111
"blog.categories": "カテゴリー",
12-
"blog.categories.in": " ",
12+
"blog.categories.in": "",
1313
"blog.continue": "続きを読む",
1414
"blog.draft": "下書き",
1515
"blog.index": "ブログトップへ戻る",

src/.overrides/hooks/translations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
5151
# Map names and available translations
5252
names[code] = name
5353
known[code] = dict(re.findall(
54-
r"^ \"([^\"]+)\": \"([^\"]+)\"(?:,|$)?", data,
54+
r"^ \"([^\"]+)\": \"([^\"]*)\"(?:,|$)?", data,
5555
re.MULTILINE
5656
))
5757

src/partials/languages/ja.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"announce.dismiss": "非表示にします",
3030
"blog.archive": "過去の投稿",
3131
"blog.categories": "カテゴリー",
32-
"blog.categories.in": " ",
32+
"blog.categories.in": "",
3333
"blog.continue": "続きを読む",
3434
"blog.draft": "下書き",
3535
"blog.index": "ブログトップへ戻る",

0 commit comments

Comments
 (0)