Git Product home page Git Product logo

Comments (3)

bendvc avatar bendvc commented on August 29, 2024 1

Hi @nx-renezwinge,

Thanks for the input. Your suggestion makes sense. I'd like to run it by the eng that did this recent work. He'll be back in the office Sept 12th @adamraya.

One thing that I would like to mention, is that we do have a future work item to move this feature into the SDK or some other reusable library so that updates and be more easily consumed. So that is probably he time we'd be looking at taking in your suggestion.

I'll keep this issue open so we can get a response from Adam.

Thanks!

Ben

Edit: Updated date my colleague will be back in the office.

from pwa-kit.

adamraya avatar adamraya commented on August 29, 2024

Thank your @nx-renezwinge for reporting the issue. You are correct. PR #667 introduced the new MutliSite context but did not consider the locale alias configuration.

The suggested solution has been implemented in #716 .
Now the <MutiSiteContext> has the complete locale object available. If the locale.alias is defined in the sites.js configuration file, using the locale.alias in the URL is prioritized over the locale.id.

The solution is merged and will be included in the next release.

New generated projects from the future release will include the fix, but existing projects will need to add the fix manually.
It looks like you already applied the refactor in your project, but let me know if I can help to apply the fix.

from pwa-kit.

nx-renezwinge avatar nx-renezwinge commented on August 29, 2024

Hi @adamraya,
thx for the fast fix :) The changes looking mostly the same.
On the next update we add your code then :)

Best regards RenΓ©

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.