summaryrefslogtreecommitdiff
path: root/localazy.json
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2023-06-30 21:02:58 +0200
committerrebortg <github@ghlr.de>2023-06-30 22:00:13 +0200
commit540db56694da9f0f17ae7a5647e8dd7d96c0fd73 (patch)
treeb2e78c0202fd257bb216be31523a03d3ebe156c7 /localazy.json
parent84f5f7372511289821cd3cf8366f0c6a92ad4196 (diff)
downloadvyos-documentation-540db56694da9f0f17ae7a5647e8dd7d96c0fd73.tar.gz
vyos-documentation-540db56694da9f0f17ae7a5647e8dd7d96c0fd73.zip
add localazy as the translation provider
Diffstat (limited to 'localazy.json')
-rw-r--r--localazy.json32
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