Skip to content

Commit bd78daa

Browse files
committed
Add header comment to JS translation catalogs for uniqueness, order artifact paths alphabetically in pyproject.toml
1 parent 243f079 commit bd78daa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎babel_runner.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def compile_js_catalog(pofile: Path) -> None:
141141
if translation is not None and translation.string:
142142
messages[message.id] = translation.string
143143
jsfile.write_text(
144+
f"// {DOMAIN} translations for {pofile.parents[1].name}\n"
144145
"Object.assign(Documentation.TRANSLATIONS, "
145146
+ json.dumps(messages, ensure_ascii=True, sort_keys=True)
146147
+ ");\n",

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ entry-points."sphinx.html_themes".python_docs_theme = "python_docs_theme"
4141
[tool.hatch]
4242
version.path = "python_docs_theme/__init__.py"
4343
build.artifacts = [
44-
"python_docs_theme/locale/**/*.mo",
4544
"python_docs_theme/locale/**/*.js",
45+
"python_docs_theme/locale/**/*.mo",
4646
]
4747
build.hooks.custom.path = "babel_runner.py"
4848
build.targets.wheel.packages = [ "python_docs_theme" ]

0 commit comments

Comments
 (0)