Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(docs) Guide for translating UI text with Lingui #21805

Merged
merged 6 commits into from
Mar 13, 2020
Merged

Conversation

tesseralis
Copy link
Contributor

@tesseralis tesseralis commented Feb 27, 2020

Description

Guide for translators to translate UI text generated by Lingui in #21633

@tesseralis tesseralis requested a review from a team as a code owner February 27, 2020 23:48
@tesseralis tesseralis requested a review from a team as a code owner February 27, 2020 23:52
Unlike Markdown documents, UI messages are kept in the same monorepo as the gatsby source.

1. Follow the instructions for [running the Gatsby website](/contributing/blog-and-website-contributions/#making-changes-to-the-website).
2. Go to `www/` and run `yarn lingui:add-locale [lang code]` to generate a file for your language at `src/data/locales/[lang-code]/messages.po`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we ensure that people use the correct lang code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll show up in the pull request of the generated po file.

@AishaBlake AishaBlake self-assigned this Mar 2, 2020
@AishaBlake AishaBlake added topic: i18n type: documentation An issue or pull request for improving or updating Gatsby's documentation labels Mar 2, 2020
Copy link

@AishaBlake AishaBlake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a couple of small style changes. I removed a couple of instances of "we" and also removed the note about future functionality. I can't think of anything else this needs to cover and I appreciate you getting feedback from the translation maintainers proactively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants