[report] Production with Lingui v3
See original GitHub issueDescribe the bug
Our project went to production this week, this ticket is made to track all the issue we have with lingui v3, and we have a lot
Todo:
- : Cannot build application locally outside CI due to template literral not being interpolated locally
- : Lingui is editing test translation during during CI build:
FAIL src/features/firstLogin/PrivacyPolicy/PrivacyPolicyModal.test.tsx (1316 MB heap size)
● <PrivacyPolicyModal /> › should render correctly
expect(received).toMatchSnapshot()
Snapshot name: `<PrivacyPolicyModal /> should render correctly 1`
- Snapshot - 1
+ Received + 1
@@ -258,11 +258,11 @@
}
testID="button-title"
textColor="#eb0055"
textSize={12}
>
- Politique des cookies
+ Politique des cookies<<<<<<< HEAD
</Text>
</View>
- Lingui is editing message during build
So far we are disabling lingui but we have pain to identify the root cause, as the CI and local build command are equal. This ticket is WIP, please keep it open.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Migration guide from 2.x to 3.x
Check out the @lingui/codemods package for semi-automatic migration of your codebase. Backward incompatible changes¶. Minimal required versions are: Node.js: 10 ...
Read more >i18n of React with Lingui.js #1
In this post, I want to show how to use Lingui.js to do i18n/l10n of React ... (use "lingui compile" to compile catalogs...
Read more >The complete guide to internationalization in Next.js
Learn how to make your Next.js app international with smooth translation features in this advanced, step-by-step tutorial.
Read more >Javascript i18n with Lingui - mike.williamson - WordPress.com
3. 4. const { i18n } = require( 'lingui-i18n' ) ... (use "lingui compile" to compile catalogs for production) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not that anyone asked for my opinion but I circled here browsing through the repo and reading https://github.com/lingui/js-lingui/issues/1022
I just wanted to give @semoal a friendly recommendation to think carefully before spending time with issues that do not provide clear reproduction steps (as explained in https://stackoverflow.com/help/minimal-reproducible-example). It appears that you even refactored the app in question to v3 in a huge PR and maybe even did that for free (!) - I admire such maintainer involvement but I just wanted to let you know that you could easily burn out doing too much of this kind of stuff.
Unfortunately, in my experience, people often take open source as a place to come for free tools and support. So please just make sure to take care of yourself and your mental health 👍 🙂
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.