Skip to content

clairefro/rw-mycelium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

rw-mycelium

A docs middleman for managing internationalization. This is a sandbox repo.

Usage

All source docs are maintained in source. Gitlocalize is used to sync source docs with respective target languages in i18n directory.

It is important that the target dir structure be a mirror of the source dir structure.The Gitlocalize translations should be configured accordingly.

This allows builds of respective language repo sites to maintain the same path structure, so you only have to change the target language dir on build.

Adding translations

Do so from the Gitlocalize repo

Gitlocalize manages doc syncing when source content is added or changed.

Adding a target language

To create a new target language directory, run this from the root, where LANG_CODE is a the ISO 639-1 code of the target language.

# copy directory skeleton from source to i18n/<LANG_CODE>/
rsync -av -f"+ */" -f"- *" "./source/" "./i18n/<LANG_CODE>/

# add .gitkeepers to empty dirs
find . -type d ! -path "*.git*" -empty -exec touch '{}'/.gitkeep \;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published