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

Add support for .po file format #179

Closed
purepennons opened this issue Mar 9, 2018 · 4 comments
Closed

Add support for .po file format #179

purepennons opened this issue Mar 9, 2018 · 4 comments

Comments

@purepennons
Copy link
Contributor

purepennons commented Mar 9, 2018

I use react-intl first. But because of the writers requirement, we only can provide untranslated text with a complete statement. And js-lingui support rich-text formatting with component that solved my problem. However, I found another problem in my scenario.

In my scenario, writers only accept the sheet format (.csv, .xls).

And I found a tool translate-toolkit that can convert .po files (filter out translated string) to .csv and convert back to .po files from .xls and .csv formats easily.

Many writers only accept .po, .xls or .csv format. It would be nice to have a tool to convert the lingui format to .csv or .po format.

@tricoder42
Copy link
Contributor

tricoder42 commented Mar 9, 2018 via email

@purepennons
Copy link
Contributor Author

purepennons commented Mar 9, 2018

Got it. Maybe implement a converter from .json to .po is easier for me at the time because of time pressure. If everything works fine, I will try to extend Lingui to handle .po format and send a PR.

Thank you for your reply.

@tricoder42 tricoder42 changed the title Question: Is there any tool to convert JSON to .po or .csv formats? Add support for .po file format Mar 10, 2018
@morloy
Copy link

morloy commented Mar 17, 2018

At Ledgy we used i18next-conv to convert between the .json (minimal format) and .po and translate our new website from English to German.
Generating a .po file from js-lingui was also very handy to bootstrap the translation with the Google Translator Toolkit.

@tricoder42
Copy link
Contributor

Released in 2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants