Skip to content

Commit e15a367

Browse files
committed
pdk extract & update
1 parent 5129e49 commit e15a367

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.pdk/pdk/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ def watch(self):
6262
chdir_Doc()
6363
sh("make -e SPHINXOPTS=\"-D language='ko'\" htmllive")
6464

65+
def extract(self):
66+
"""Extract translatable messages into pot files."""
67+
chdir_Doc()
68+
sh("make gettext")
69+
70+
def update(self):
71+
"""Apply the updates from pot files to po files."""
72+
chdir_Doc()
73+
sh("sphinx-intl update -p build/gettext -l ko")
74+
6575

6676
def main():
6777
fire.Fire(Command)

0 commit comments

Comments
 (0)