GithubHelp home page GithubHelp logo

Comments (4)

vmarta avatar vmarta commented on June 10, 2024

Should we be running the translation scripts (i.e. extract-default-translations) every time a localisation is added/modified?

Not only that extract script, but also the compile one. Because retail-react-app would try to grab the compiled translations:

module = await import(`../translations/compiled/${targetLocale}.json`)

So for convenience, please run this script instead (to run both the extract and compile): npm run build-translations.

(But of course, feel free to call each script individually, as long as the translations get compiled at the end)

from pwa-kit.

vmarta avatar vmarta commented on June 10, 2024

About the inconsistency you found in the test setup, the DEFAULT_LOCALEs should match. At some point, it was changed from en-GB to en-US. But the tests were probably not updated accordingly. I'll look into this further.

from pwa-kit.

git2gus avatar git2gus commented on June 10, 2024

This issue has been linked to a new work item: W-12946757

from pwa-kit.

breadadams avatar breadadams commented on June 10, 2024

Hey @vmarta , thanks for your response.

Not only that extract script, but also the compile one

Yeah my bad, I meant the "full flow" of both scripts, so perfect 👍 .

[...] the DEFAULT_LOCALEs should match. At some point, it was changed from en-GB to en-US. But the tests were probably not updated accordingly. I'll look into this further.

Ok great, I look forward to hearing news on the matter.

from pwa-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.