You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2019. It is now read-only.
I posted a comment on a create-react-app issue but I realize I should maybe ask the question here instead.
I used this plugin to extract all translatable strings from my app and it works fine. I have a json file for each js file that contains a translatable string, which all go in my build/messages directory.
However, those are not translation files: I still need to compile all the message IDs from all those files and then create a dictionary for each language, with the message IDs as keys and the translations as values, preferably each in a JSON file. I also need to update those files when I add new messages.
I found this software that does it (and seems to do it quite nicely from what I've tested) but it feels like there should be a command to automate this step.
After some research, the two closest things I found to what I am trying to do are:
I imagined there would be a simple command to achieve this. Am I missing something? How do people manage this usually? Do they need to compile the translations files by hand?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
In the meantime, I wrote this script that does the equivalent of msgmerge in gettext: we update the JSON for each language to add the missing keys (with "" as the initial value, to be completed by the translator) and remove the obsolete ones. The default langugage's JSON is updated with the default values from the descriptors.
Hi
I posted a comment on a
create-react-app
issue but I realize I should maybe ask the question here instead.I used this plugin to extract all translatable strings from my app and it works fine. I have a json file for each js file that contains a translatable string, which all go in my
build/messages
directory.However, those are not translation files: I still need to compile all the message IDs from all those files and then create a dictionary for each language, with the message IDs as keys and the translations as values, preferably each in a JSON file. I also need to update those files when I add new messages.
I found this software that does it (and seems to do it quite nicely from what I've tested) but it feels like there should be a command to automate this step.
After some research, the two closest things I found to what I am trying to do are:
react-intl
examplereact-boilerplate
I imagined there would be a simple command to achieve this. Am I missing something? How do people manage this usually? Do they need to compile the translations files by hand?
Thanks in advance!
The text was updated successfully, but these errors were encountered: