From 540db56694da9f0f17ae7a5647e8dd7d96c0fd73 Mon Sep 17 00:00:00 2001 From: rebortg Date: Fri, 30 Jun 2023 21:02:58 +0200 Subject: add localazy as the translation provider --- localazy.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 localazy.json (limited to 'localazy.json') 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 -- cgit v1.2.3