From e2bbbf496b8975d6e1c60e32b026489b13ad49c6 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Mon, 16 May 2022 09:09:10 +1000 Subject: [PATCH] ci: add crowdin configuration (#3368) --- .buildkite/pipeline.sh | 4 ++-- crowdin.yml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 crowdin.yml diff --git a/.buildkite/pipeline.sh b/.buildkite/pipeline.sh index 0e1c9e50f..ec5734bce 100755 --- a/.buildkite/pipeline.sh +++ b/.buildkite/pipeline.sh @@ -6,9 +6,9 @@ DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?) if [[ "${DIVERGED}" == 0 ]]; then if [[ "${BUILDKITE_TAG}" == "" ]]; then if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then - CI_BYPASS=$(git diff --name-only HEAD~1 | sed -rn '/^(CODE_OF_CONDUCT.md|CONTRIBUTING.md|README.md|SECURITY.md|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) + CI_BYPASS=$(git diff --name-only HEAD~1 | sed -rn '/^(CODE_OF_CONDUCT\.md|CONTRIBUTING\.md|README\.md|SECURITY\.md|crowdin\.yml|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) else - CI_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^(CODE_OF_CONDUCT.md|CONTRIBUTING.md|README.md|SECURITY.md|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) + CI_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^(CODE_OF_CONDUCT\.md|CONTRIBUTING\.md|README\.md|SECURITY\.md|crowdin\.yml|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) fi if [[ $CI_BYPASS == "true" ]]; then diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 000000000..998db1ddd --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,5 @@ +--- +files: + - source: /internal/server/locales/en/* + translation: /internal/server/locales/%locale_with_underscore%/%original_file_name% +...