updating config after usin Lingui #2090
Replies: 2 comments
-
Make sure you have Actually, i don't recommend using any of the JSON formats. It only seems easier in the beginning, because you're familiar with the JSON files, but then you quickly will go into troubles. There are no benefits of using json format over PO with lingui:
Anyway, if you still want to process with JSON, what you should know: Say you have {
locales: ['en', 'ru', 'fr']
sourceLocale: 'en',
} On extract command, Lingui will generate, 3 files:
When you
Honestly, i never ever have a need to use this flow, so I don't know how to help there. I'm personally always preparing one catalog per entry point or per app and load it once. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am preparing for a talk about Internationalization and I noticed that If I started the project and done some translation, then I try to edit "format" & "catalog" configuration, it does not work.
For format, I am using the "format-json" and started the project with the following:
but when I changed the style to "minimal" as here:
I got empty messages, just IDs, even when I ran "yarn lingui extract".
As per catalogs, here is the original config I started with:
But when I tried this:
I am not sure if it's the update or my syntax. I tried the one in this docs: here
Also, in case using this way, here, how to load catalogs content into components? is it with wrapping each component with I18nProvider and loading message in the Component files?
I know it is a bit of too much but I am trying to learn more and teach the best version.
Thanks for help.
Beta Was this translation helpful? Give feedback.
All reactions