question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[report] Production with Lingui v3

See original GitHub issue

Describe 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&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD
                  </Text>
                </View>
  • Lingui is editing message during build

image

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vonovakcommented, Jun 14, 2021

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 👍 🙂

0reactions
stale[bot]commented, Aug 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >
@lingui/conf | Yarn - Package Manager
Fast, reliable, and secure dependency management.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found