Skip to content

Commit 1884957

Browse files
committed
feat(i18n): add Chinese language support
1 parent a72fbb4 commit 1884957

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ updatepot:
3131

3232
# update the po files for each target language from the EN pot files
3333
updatelangpo:
34-
sphinx-intl update --pot-dir "source/locale/pot" --language cs,es,fil,fr,id,sw,te
34+
sphinx-intl update --pot-dir "source/locale/pot" --language cs,es,fil,fr,id,sw,te,zh
3535

3636
# push new and changed strings to Transifex
3737
pushlang:
3838
tx push --source
3939

4040
# push translated strings from Transifex
4141
pulllang:
42-
tx pull --language "cs,es,fil,fr,id,sw,te"
42+
tx pull --language "cs,es,fil,fr,id,sw,te,zh"
4343

4444
build:
4545
@$(SPHINXBUILD) -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)/html" -nW
@@ -50,6 +50,7 @@ build:
5050
@$(SPHINXBUILD) -b dirhtml -D language='id' "$(SOURCEDIR)" "$(BUILDDIR)/html/id" -nW
5151
@$(SPHINXBUILD) -b dirhtml -D language='sw' "$(SOURCEDIR)" "$(BUILDDIR)/html/sw" -nW
5252
@$(SPHINXBUILD) -b dirhtml -D language='te' "$(SOURCEDIR)" "$(BUILDDIR)/html/te" -nW
53+
@$(SPHINXBUILD) -b dirhtml -D language='zh' "$(SOURCEDIR)" "$(BUILDDIR)/html/zh" -nW
5354
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
5455
# -W Turn warnings into errors that stop the build.
5556
# for more details about the options see https://www.sphinx-doc.org/en/1.8/man/sphinx-build.html#options
@@ -65,6 +66,7 @@ allerr:
6566
@$(SPHINXBUILD) -v -b dirhtml -D language='id' "$(SOURCEDIR)" "$(BUILDDIR)/html/id"
6667
@$(SPHINXBUILD) -v -b dirhtml -D language='sw' "$(SOURCEDIR)" "$(BUILDDIR)/html/sw"
6768
@$(SPHINXBUILD) -v -b dirhtml -D language='te' "$(SOURCEDIR)" "$(BUILDDIR)/html/te"
69+
@$(SPHINXBUILD) -v -b dirhtml -D language='zh' "$(SOURCEDIR)" "$(BUILDDIR)/html/zh"
6870

6971
# Catch-all target: route all unknown targets to Sphinx using the new
7072
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).

source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The documentation is available in several languages. Some translations are incom
2626
- `Indonesian </id>`_
2727
- `Swahili </sw>`_
2828
- `Telugu </te>`_
29+
- `Chinese </zh>`_
2930

3031
|
3132
|

0 commit comments

Comments
 (0)