Skip to content

Commit 461df84

Browse files
avivaceISSOtm
andauthored
Add support for translations (#49)
Co-authored-by: Eldred Habert <[email protected]>
1 parent f711fd4 commit 461df84

16 files changed

+7543
-27
lines changed

.github/workflows/build-and-deploy.yml

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
MDBOOK_OUTPUT__LINKCHECK__OPTIONAL: "false"
4444
run: |
4545
mdbook build
46+
for f in po/*.po; do
47+
lang=$(basename -s .po "$f")
48+
MDBOOK_BOOK__LANGUAGE="$lang" mdbook build -d book/"$lang"
49+
mv book/"$lang"/custom book/custom/"$lang"
50+
done
4651
4752
- name: Store final build
4853
uses: actions/upload-artifact@v2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/book/
22
/target/
33
.DS_Store
4+
/po/messages.pot

0 commit comments

Comments
 (0)