Replies: 2 comments 1 reply
-
In that case, most likely, you are uploading translations only for the 'pl' language, skipping the stage of uploading the initial messages for 'en' in the production build. react({
...
plugins: [
['@lingui/swc-plugin', { stripNonEssentialFields: false }]
]
}) |
Beta Was this translation helpful? Give feedback.
-
This is by design. Lingui is dropping original message from the bundle in production build, and keep this message in development build. That is made to save size of the bundle, because if user is switched on the "pl" language, if we would not drop original messages (en) user will effectively load two message bundles en + pl. You need to make sure that you load catalog for all languages, including a source one (en) and ensure that catalogs are up-to-date and compiled. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The translation key values for placeholders
show fine in development but in production, it shows as {keyName}.
More details at n-ce/ytify#253 (comment)
I am using @lingui/core in vite + typescript project.
Here is my src/locales/en.ts
Here is the lingui config:
Here is the src/scripts/i18n.ts :
Beta Was this translation helpful? Give feedback.
All reactions