Undo commiting translations

This commit is contained in:
Ran-Mewo
2026-02-03 10:17:50 +11:00
parent 909168d63b
commit 731d3f63fd
2 changed files with 18 additions and 9 deletions
+8 -2
View File
@@ -35,7 +35,8 @@ variables:
build:
stage: build
needs:
- translations
- job: translations
artifacts: true
parallel:
matrix:
- MC_VER: [
@@ -113,4 +114,9 @@ translations:
script:
- if [ "$CI_COMMIT_BEFORE_SHA" = "0000000000000000000000000000000000000000" ] || git diff --name-only "$CI_COMMIT_BEFORE_SHA" "$CI_COMMIT_SHA" -- coreSubProjects/core/src/main/resources/assets/distanthorizons/lang | grep -q .; then crowdin upload sources; fi
- crowdin download --export-only-approved --skip-untranslated-files
- for f in coreSubProjects/core/src/main/resources/assets/distanthorizons/lang/*.json; do [ -e "$f" ] || continue; n="$(basename "$f" | tr '[:upper:]' '[:lower:]')"; [ "$(basename "$f")" = "$n" ] || mv "$f" "$(dirname "$f")/$n"; done
- for f in coreSubProjects/core/src/main/resources/assets/distanthorizons/lang/*.json; do [ -e "$f" ] || continue; sed -i 's/\\\\n/\\n/g' "$f"; n="$(basename "$f" | tr '[:upper:]' '[:lower:]')"; [ "$(basename "$f")" = "$n" ] || mv "$f" "$(dirname "$f")/$n"; done
artifacts:
paths:
- coreSubProjects/core/src/main/resources/assets/distanthorizons/lang/**
expire_in: 1 day
when: always
+9 -6
View File
@@ -1,9 +1,12 @@
# Translations
Translations are managed via Crowdin: https://crowdin.com/project/distant-horizons
Translations are managed on Crowdin: https://crowdin.com/project/distant-horizons
## How to help:
1. Create a Crowdin account
2. Join the project
3. Translate strings from `en_us.json`.
## Translators
- Create a Crowdin account and join the project.
- Translate strings from `en_us.json`. Keys ending with `@tooltip` are tooltips.
- Keep formatting codes intact: `§`, `%s`, `%d`, `%1$s`, `\n`.
## Notes:
- Keys ending with `@tooltip` are tooltips.
- Keep formatting codes intact, IE: `§`, `%s`, `%d`, `%1$s`.
- For newlines, utilize **Shift + Enter** instead of `\n`.
- Do not edit non-English files in pull requests.