Skip to content

[report] Production with Lingui v3 #1070

@kopax-polyconseil

Description

@kopax-polyconseil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions