Comments (2)
oooh, the matcher! That made more sense. I'll be testing it on our production build with different matchers but it looks like it works as it should in the repro repo I linked to with a second string in the matcher-config. Doing a test with ['/']
and it looks like it works as you said.
Thank you again, Tom!
I'll close it for the time being and I'll reopen it if I find something else that is relevant here
from next-international.
I've tried locally and this looks like an issue with the matcher
option of the middleware. It doesn't run at all when navigating on the website (you can add a console.log
inside the middleware to test).
I'm not sure to understand exactly how matcher
works when having a basePath
, but matcher: ['/']
seems to work.
from next-international.
Related Issues (20)
- Question: Is there feature for use translate outside hook and component? HOT 2
- [SSG][Metadata] AlternateURLs/Languages ; OpenGraphMetadata
- Failed to execute 'removeChild' on 'Node' when using `useChangeLocale` and `useCurrentLocale`
- is there ignoreRoutes property for ignore adding localization route to static file HOT 1
- Feedback for “Setup” HOT 1
- [Question][Maybe due to the middleware] Forced `canonical` on OpenGraph? HOT 1
- Display Loading Indicator During Language Translation Process HOT 1
- Unit testing with createI18nServer in server-side components throws server-only error HOT 1
- Automatically localize from middleware HOT 1
- Feedback for “Get Started” HOT 2
- Can't set an empty string as translation value for a key
- Bailout to client side rendering HOT 1
- setStaticParamsLocale in root layout.tsx
- Migration to App router | Documentation
- How to customize the locale prefix to something else while keep using browser language auto-detection?
- Error: Could not find locale while pre-rendering page, make sure you called `setStaticParamsLocale` at the top of your pages HOT 2
- dynamic arrray map
- Check not used messages?
- I18nProviderClient block when disable Javascript in browser
- Broken Hot Reload and massive hydration errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-international.