feat: allow translations
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
49fce00fae
commit
58c6a43434
19
config.toml
19
config.toml
|
@ -3,6 +3,25 @@ languageCode = 'en-us'
|
|||
title = 'Imaginer'
|
||||
theme = "gadolinium"
|
||||
|
||||
|
||||
|
||||
[languages]
|
||||
[languages.de]
|
||||
contentDir = 'content/de'
|
||||
languageName = 'Deutsch'
|
||||
[languages.es]
|
||||
contentDir = 'content/es'
|
||||
languageName = 'Spanish'
|
||||
[languages.fr]
|
||||
contentDir = 'content/fr'
|
||||
languageName = 'Français'
|
||||
[languages.en]
|
||||
contentDir = 'content'
|
||||
languageName = 'English'
|
||||
[languages.ru]
|
||||
contentDir = 'content/ru'
|
||||
languageName = 'Russian'
|
||||
|
||||
[params]
|
||||
sourceURL = "https://codeberg.org/Imaginer/pages"
|
||||
customHeadHTML = """
|
||||
|
|
12
gen_po.sh
Normal file
12
gen_po.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
cd content
|
||||
#pip install md2po
|
||||
|
||||
|
||||
for lang in de es fr ru
|
||||
do
|
||||
for file in _index help/openai help/hugginface
|
||||
do
|
||||
echo "Generating $lang/${file}.po from ${file}.md"
|
||||
md2po "${file}.md" --quiet --save --po-filepath "$lang/${file}.po"
|
||||
done
|
||||
done
|
12
gen_translations.sh
Normal file
12
gen_translations.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
cd content
|
||||
#pip install md2po
|
||||
|
||||
|
||||
for lang in de es fr ru
|
||||
do
|
||||
for file in _index help/openai help/hugginface
|
||||
do
|
||||
echo "Generating $lang/${file}.md"
|
||||
po2md "${file}.md" --pofiles "$lang/${file}.po" --quiet --save "$lang/${file}.md"
|
||||
done
|
||||
done
|
Loading…
Reference in a new issue