diff options
author | rebortg <github@ghlr.de> | 2023-06-30 21:02:58 +0200 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2023-06-30 22:00:13 +0200 |
commit | 540db56694da9f0f17ae7a5647e8dd7d96c0fd73 (patch) | |
tree | b2e78c0202fd257bb216be31523a03d3ebe156c7 /localazy.json | |
parent | 84f5f7372511289821cd3cf8366f0c6a92ad4196 (diff) | |
download | vyos-documentation-540db56694da9f0f17ae7a5647e8dd7d96c0fd73.tar.gz vyos-documentation-540db56694da9f0f17ae7a5647e8dd7d96c0fd73.zip |
add localazy as the translation provider
Diffstat (limited to 'localazy.json')
-rw-r--r-- | localazy.json | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/localazy.json b/localazy.json new file mode 100644 index 00000000..eb6b430a --- /dev/null +++ b/localazy.json @@ -0,0 +1,32 @@ +{ + "upload": { + "type": "pot", + "folder": "docs/_build/gettext", + "files": { + "pattern": "**.pot", + "excludes": [ + "changelog/*.pot", + "coverage.pot" + ], + "path": "${path}" + } + }, + + "transformations": [ + { + "name": "trans_path", + "source": "${path}", + "operations": "remove: docs/_build/gettext" + } + ], + + "download": { + "files": "docs/_locale/${lang}/${trans_path}/${fileWithoutExt}.pot" + }, + "conversion": { + "actions": { + "type": "mo", + "output": "docs/_locale/${lang}/LC_MESSAGES/${trans_path}/${fileWithoutExt}.mo" + } + } +}
\ No newline at end of file |