mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Clarify contributions for translations (#55574)
* Docs: Clarify contributions for translations * add comment to messages.po files
This commit is contained in:
parent
afdb094983
commit
615d86d902
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -110,6 +110,7 @@ go.sum @grafana/backend-platform
|
||||
/contribute/architecture/backend @grafana/backend-platform
|
||||
/contribute/engineering/backend @grafana/backend-platform
|
||||
|
||||
/public/locales @grafana/user-essentials
|
||||
/e2e @grafana/user-essentials
|
||||
/packages @grafana/user-essentials @grafana/plugins-platform-frontend @grafana/grafana-bi-squad
|
||||
/packages/grafana-e2e-selectors @grafana/user-essentials
|
||||
|
@ -15,6 +15,8 @@ You can contribute to Grafana in several ways. Here are some examples:
|
||||
- Organize meetups and user groups in your local area.
|
||||
- Help others by answering questions about Grafana.
|
||||
|
||||
**Please note:** We do not currently accept contributions for translations. Please do not submit pull requests for messages.po files - they will be rejected.
|
||||
|
||||
For more ways to contribute, check out the [Open Source Guides](https://opensource.guide/how-to-contribute/).
|
||||
|
||||
### Report bugs
|
||||
|
@ -7,6 +7,10 @@ Grafana uses the [LinguiJS](https://github.com/lingui/js-lingui) framework for m
|
||||
- Use `<Trans id="search-results.panel-link">Go to {panel.title}</Trans>` in code to add a translatable phrase
|
||||
- Translations are stored in .po files in `public/locales/{locale}/messages.po`
|
||||
- If a particular phrase is not available in the a language then it will fall back to English
|
||||
- To update phrases in English, edit the `en/messages.po` file, not the source JSX
|
||||
- To update phrases in any translated language, edit the phrase in Crowdin
|
||||
|
||||
**Please note:** We do not currently accept contributions for translations. Please do not submit pull requests for messages.po files - they will be rejected.
|
||||
|
||||
## How to add a new translation phrase
|
||||
|
||||
|
@ -19,6 +19,8 @@ msgstr ""
|
||||
"X-Crowdin-File: /main/public/locales/en-US/messages.po\n"
|
||||
"X-Crowdin-File-ID: 59\n"
|
||||
|
||||
# Don't edit this file manually - translations must be managed within Crowdin
|
||||
|
||||
#: public/app/core/components/SharedPreferences/SharedPreferences.tsx
|
||||
msgid "common.locale.default"
|
||||
msgstr ""
|
||||
|
@ -19,6 +19,8 @@ msgstr ""
|
||||
"X-Crowdin-File: /main/public/locales/en-US/messages.po\n"
|
||||
"X-Crowdin-File-ID: 59\n"
|
||||
|
||||
# Don't edit this file manually - translations must be managed within Crowdin
|
||||
|
||||
#: public/app/core/components/SharedPreferences/SharedPreferences.tsx
|
||||
msgid "common.locale.default"
|
||||
msgstr ""
|
||||
|
@ -13,6 +13,8 @@ msgstr ""
|
||||
"Language-Team: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
# Don't edit this file manually - translations must be managed within Crowdin
|
||||
|
||||
#: public/app/core/components/SharedPreferences/SharedPreferences.tsx
|
||||
msgid "common.locale.default"
|
||||
msgstr ""
|
||||
|
Loading…
Reference in New Issue
Block a user