docs: document Weblate translation workflows (#1643)
This commit is contained in:
@@ -10,6 +10,7 @@ code.
|
||||
- [First-Time Contributors](#first-time-contributors)
|
||||
- [Quick Guide](#quick-guide)
|
||||
- [I'd like to contribute code](#id-like-to-contribute-code)
|
||||
- [I'd like to contribute translations](#id-like-to-contribute-translations)
|
||||
- [Something isn't working](#something-isnt-working)
|
||||
- [I have an idea or feature request](#i-have-an-idea-or-feature-request)
|
||||
- [I've implemented something and want to submit it](#ive-implemented-something-and-want-to-submit-it)
|
||||
@@ -71,6 +72,26 @@ friendly to newcomers are tagged [`good first issue`][good-first-issue].
|
||||
|
||||
[good-first-issue]: https://github.com/grimmory-tools/grimmory/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22good+first+issue%22
|
||||
|
||||
### I'd like to contribute translations
|
||||
|
||||
Please use the [Grimmory Weblate project](https://hosted.weblate.org/engage/grimmory/) for
|
||||
non-English localization work. Weblate tracks `develop`, shows missing and outdated strings, and
|
||||
sends translation updates back to the repository as reviewed pull requests.
|
||||
|
||||
When translating, preserve placeholders exactly, such as `{{ name }}`, `{{ count }}`, and
|
||||
`{{ provider }}`. Do not translate placeholder names. Keep HTML tags intact when they appear in a
|
||||
source string, and translate naturally for your language rather than copying English phrasing word
|
||||
for word.
|
||||
|
||||
Do not hand-edit non-English translations in regular code pull requests unless explicitly requested
|
||||
to do so by a maintainer. Do not pre-fill other languages' localizations with English. Empty target
|
||||
strings make it easier to surface those keys for translators than copied English.
|
||||
|
||||
Developers should add and change source strings in `frontend/src/i18n/en/*.json`. Each JSON file is
|
||||
a Transloco domain and maps to a Weblate component. When adding a new source-string domain, add the
|
||||
English JSON file, add matching empty JSON files for each non-English locale, then import/export the
|
||||
domain from each locale `index.ts`.
|
||||
|
||||
### Something isn't working
|
||||
|
||||
Search [existing discussions][discussions] and [closed issues][closed-issues] first. Your issue
|
||||
|
||||
@@ -12,10 +12,11 @@
|
||||
|
||||
[](https://github.com/grimmory-tools/grimmory/releases)
|
||||
[](LICENSE)
|
||||
<a href="https://hosted.weblate.org/engage/grimmory/"><img src="https://hosted.weblate.org/widget/grimmory/svg-badge.svg" alt="Translation status"></a>
|
||||
[](https://hub.docker.com/r/grimmory/grimmory)
|
||||
[](https://discord.gg/9YJ7HB4n8T)
|
||||
|
||||
[Documentation](https://grimmory.org/docs) · [Quick Start](#quick-start) · [Discord](https://discord.gg/9YJ7HB4n8T) · [Releases](https://github.com/grimmory-tools/grimmory/releases)
|
||||
[Documentation](https://grimmory.org/docs) · [Quick Start](#quick-start) · [Translations](https://hosted.weblate.org/engage/grimmory/) · [Discord](https://discord.gg/9YJ7HB4n8T) · [Releases](https://github.com/grimmory-tools/grimmory/releases)
|
||||
|
||||
<!--  -->
|
||||
|
||||
@@ -181,7 +182,8 @@ Additional deployment examples:
|
||||
## Developer Surfaces
|
||||
|
||||
|
||||
Contributor workflow, PR policy, and release semantics live in [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
Contributor workflow, PR policy, and release semantics live in [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
Non-English translation contributions are managed through [Weblate](https://hosted.weblate.org/engage/grimmory/).
|
||||
|
||||
General purpose development guidelines live in [DEVELOPMENT.md](DEVELOPMENT.md). Component-specific implementation guidance lives in:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user