From 4b452d933380ccadecef7e1f8948fee71faf99dc Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Wed, 31 Jan 2024 21:43:05 +0100 Subject: [PATCH] #56 translation: update crowdin settings --- Makefile | 5 +++++ crowdin.yaml | 4 ++-- scripts/download_translations.sh | 4 ++-- shell.nix | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0890518 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +translations-download: + crowdin download + +translations-upload: + crowdin upload diff --git a/crowdin.yaml b/crowdin.yaml index 0b74893..fb34d86 100644 --- a/crowdin.yaml +++ b/crowdin.yaml @@ -15,6 +15,6 @@ base_path: "." files: - # source files filter - source: '/app/_locales/en/messages.json' + source: '/src-bex/_locales/en/messages.json' # where translations live - translation: '/app/_locales/%locale_with_underscore%/messages.json' + translation: '/src-bex/_locales/%locale_with_underscore%/messages.json' diff --git a/scripts/download_translations.sh b/scripts/download_translations.sh index 29dc4ab..e6395c8 100755 --- a/scripts/download_translations.sh +++ b/scripts/download_translations.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/bin/env bash # Use this script in $ProjectFileDir$ to download the translations from Crowdin -TRANSLATION_PATH="app/_locales" +#TRANSLATION_PATH="src-bex/_locales" echo "Downloading translation from Crowdin..." # see: https://support.crowdin.com/cli-tool/ diff --git a/shell.nix b/shell.nix index 201adff..dc97565 100644 --- a/shell.nix +++ b/shell.nix @@ -3,6 +3,7 @@ nativeBuildInputs = with pkgs; [ nodejs_20 gnumake + crowdin-cli ]; }