Skip to content

Commit 73276b6

Browse files
committed
Fix script; Bump mlp
1 parent f42faea commit 73276b6

5 files changed

Lines changed: 15 additions & 12 deletions

File tree

docs/user_guide/assets/licenses/frontend_licenses.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,11 +3698,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36983698
SOFTWARE.
36993699

37003700

3701-
mui-language-picker 2.7.4
3701+
mui-language-picker 2.7.5
37023702
MIT
37033703
MIT License
37043704

3705-
Copyright (c) 2020-2022 SIL LSDev
3705+
Copyright (c) 2020-2026 SIL LSDev
37063706

37073707
Permission is hereby granted, free of charge, to any person obtaining a copy
37083708
of this software and associated documentation files (the "Software"), to deal

maintenance/scripts/mui_language_picker_fonts.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,3 @@ Surma
225225
Tagmukay
226226
Tai Heritage Pro
227227
ThiruValluvar
228-
annapurnanepal

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"levenshtein-search": "~0.1.2",
6565
"material-react-table": "~3.2.1",
6666
"motion": "~12.38.0",
67-
"mui-language-picker": "~2.7.4",
67+
"mui-language-picker": "~2.7.5",
6868
"notistack": "~3.0.2",
6969
"nspell": "~2.1.5",
7070
"punycode": "~2.3.1",

scripts/get_fonts_dev.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import argparse
99
import json
10+
import logging
1011
from pathlib import Path
1112
import platform
1213
import re
@@ -84,10 +85,13 @@ def main() -> None:
8485

8586
with open(mlp_families_json, "r") as f:
8687
families = json.load(f)
87-
font_lines = sorted(
88-
families[slug]["family"] + "\n" if slug in families else slug + "\n"
89-
for slug in all_slugs
90-
)
88+
font_lines = []
89+
for slug in all_slugs:
90+
if slug in families:
91+
font_lines.append(families[slug]["family"] + "\n")
92+
else:
93+
logging.warning("Slug '%s' not found in families.json, skipping", slug)
94+
font_lines.sort()
9195

9296
with open(mlp_font_list, "w") as fonts_file:
9397
fonts_file.writelines(font_lines)

0 commit comments

Comments
 (0)