trans :3 lations

This commit is contained in:
Ran-Mewo
2026-01-24 21:49:49 +06:00
parent 32775ac3e5
commit 50fe44ebf9
5 changed files with 36 additions and 0 deletions
+12
View File
@@ -5,6 +5,7 @@ image: eclipse-temurin:21
# all stages need to be defined here
# TODO: Make stages depend on what is in versionProperties
stages:
- translations
- build
- api
- pages
@@ -102,3 +103,14 @@ pages:
- public
allow_failure: false
extends: .build_java
translations:
stage: translations
image: crowdin/cli:latest
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: manual
script:
- crowdin upload sources
- 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
+5
View File
@@ -12,6 +12,11 @@ Below is a video demonstrating the system:
<a href="https://youtu.be/SxQdbtjGEsc" target="_blank">![Distant Horizons - Alpha 2.0](https://i.ytimg.com/vi/SxQdbtjGEsc/hqdefault.jpg)</a>
## Translations
[![Crowdin](https://badges.crowdin.net/distant-horizons/localized.svg)](https://crowdin.com/project/distant-horizons)\
Crowdin Project: [Distant Horizons](https://crowdin.com/project/distant-horizons)\
Guidelines: [translations.md](translations.md)
<br>
## Minecraft and Library Versions
+2
View File
@@ -4,7 +4,9 @@ Thanks for your interest in contributing to Distant Horizons!
Check out the [Core Wiki](https://gitlab.com/jeseibel/distant-horizons-core/-/wikis/home) for a rough overview of Distant Horizon's project structure.
## Translations
See [translations.md](translations.md) for the Crowdin workflow.
## Submitting a merge request
+8
View File
@@ -0,0 +1,8 @@
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: ./coreSubProjects/core/src/main/resources/assets/distanthorizons/lang
preserve_hierarchy: true
files:
- source: /en_us.json
translation: /%locale_with_underscore%.json
type: json
+9
View File
@@ -0,0 +1,9 @@
# Translations
Translations are managed on Crowdin: https://crowdin.com/project/distant-horizons
## 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`.
- Do not edit non-English files in pull requests.