diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-06-10 14:36:24 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-06-10 14:36:24 +0100 |
commit | 4f568ab53f2df5a903dfa0131b277fb4b020125f (patch) | |
tree | 9fe27cc823f82645aa733029815adb386a2cbc5d /bin/compile-book | |
parent | 456bdacb230fbfcb93114c663685551101dd2543 (diff) | |
download | bookup-4f568ab53f2df5a903dfa0131b277fb4b020125f.tar.gz bookup-4f568ab53f2df5a903dfa0131b277fb4b020125f.tar.bz2 |
Feat: localization support
Diffstat (limited to 'bin/compile-book')
-rwxr-xr-x | bin/compile-book | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/compile-book b/bin/compile-book index 5c8447a..e3a8b45 100755 --- a/bin/compile-book +++ b/bin/compile-book @@ -18,6 +18,9 @@ if [ -z "$LANG" ]; then LANG="en" fi +# Update _output.yml with language information +sed -e "s|%%lang%%|$LANG|g" templates/_output.yml > _output.yml + # Set structure and templates STRUCTURE="structure/book/$LANG" TEMPLATES="templates/book/$LANG" |