Skip to content

Commit

Permalink
#56 translation: update crowdin settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Jan 31, 2024
1 parent 6a0f18f commit 4b452d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
translations-download:
crowdin download

translations-upload:
crowdin upload
4 changes: 2 additions & 2 deletions crowdin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 2 additions & 2 deletions scripts/download_translations.sh
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
nativeBuildInputs = with pkgs; [
nodejs_20
gnumake
crowdin-cli
];
}

0 comments on commit 4b452d9

Please sign in to comment.