fix(i18n): include cli and web docs in locale runs

This commit is contained in:
Peter Steinberger 2026-04-23 07:16:06 +01:00
parent ef567c5c14
commit e142c0b745
No known key found for this signature in database
2 changed files with 12 additions and 4 deletions

View File

@ -96,12 +96,20 @@ jobs:
import re
from pathlib import Path
source_hash_re = re.compile(r'^x-i18n:\n(?: .*\n)*? source_hash: ([0-9a-f]{64})$', re.M)
source_hash_re = re.compile(r'^x-i18n:\n(?:[ \t]+.*\n)*?[ \t]+source_hash: ([0-9a-f]{64})$', re.M)
locale_dir_re = re.compile(r"^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})?$")
def is_locale_dir(path: Path) -> bool:
return (
path.is_dir()
and locale_dir_re.match(path.name)
and (path / ".i18n" / "README.md").exists()
)
locale_dirs = {
path.name
for path in Path("docs").iterdir()
if path.is_dir() and locale_dir_re.match(path.name)
if is_locale_dir(path)
}
locale = os.environ["LOCALE"]
pending_path = Path(".openclaw-sync") / f"docs-i18n-{os.environ['LOCALE_SLUG']}.txt"

View File

@ -1,5 +1,5 @@
{
"repository": "openclaw/openclaw",
"sha": "bb55e23c67b87f01ccc4c85f302a7cceadf20b44",
"syncedAt": "2026-04-23T05:52:24.970Z"
"sha": "5bd8254f611760e364e95dc6d19810467db8dfcb",
"syncedAt": "2026-04-23T06:16:00.841Z"
}