summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-05-16 09:09:10 +1000
committerGitHub <noreply@github.com>2022-05-16 09:09:10 +1000
commite2bbbf496b8975d6e1c60e32b026489b13ad49c6 (patch)
treeac61de44bf323104ee58fe3eebec27da56f8484a
parentc26fa6592e2243f7210cd1463196efae6ce9f625 (diff)
ci: add crowdin configuration (#3368)
-rwxr-xr-x.buildkite/pipeline.sh4
-rw-r--r--crowdin.yml5
2 files changed, 7 insertions, 2 deletions
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%
+...