messageformat / Jed

Gettext Style i18n for Modern JavaScript Apps
http://messageformat.github.io/Jed
MIT License
874 stars 68 forks source link

Translations extraction #61

Open pronebird opened 5 years ago

pronebird commented 5 years ago

Hi,

How does one generate .pot from the source code using Jed? I assume that gettext won't be able to parse the calls to Jed since the syntax is too complex. If that's so, what are the alternatives?

Cheers, Andrej

kbrock commented 2 years ago

You probably already have a solution but putting this out there for others looking for an answer.

We use ruby, so we're using a rails tool: https://github.com/webhippie/gettext_i18n_rails_js

But other languages probably have an implementation that is more suitable for the language.