From 73067c586883540e13ef6d252bd265b8bb30d68b Mon Sep 17 00:00:00 2001 From: smainz Date: Wed, 21 Dec 2022 14:45:41 +0100 Subject: [PATCH] Add a sentence regarding translations to the development docs (UI page) (#1459) Make obvious, that at least an English message key has to be added to the message files --- docs/docs/92-development/03-ui.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docs/92-development/03-ui.md b/docs/docs/92-development/03-ui.md index 3e47fed70..b2a124847 100644 --- a/docs/docs/92-development/03-ui.md +++ b/docs/docs/92-development/03-ui.md @@ -29,3 +29,10 @@ The following list contains some tools and frameworks used by the Woodpecker UI. - [eslint](https://eslint.org/) - [Volar & vue-tsc](https://github.com/johnsoncodehk/volar/) for type-checking in .vue file - use the take-over mode of Volar as described by [this guide](https://github.com/johnsoncodehk/volar/discussions/471) + +## Messages and Translations + +Woodpecker uses [Vue I18n](https://vue-i18n.intlify.dev/) as translation library. New translations have to be added to `web/src/assets/locales/en.json`. The English source file will be automatically imported into [Weblate](https://translate.woodpecker-ci.org/) (the translation system used by Woodpecker) where all other languages will be translated by the community based on the English source. +You must not provide translations except English in PRs, otherwise weblate could put git into conflicts (when someone has translated in that language file and changes are not into master branch yet) + +For more information about translations see [Translations](./07-translations.md).