Comments (6)
Sorry, that still doesn't work. useRoute()
expects a union type to be passed in. I don't think the routing strategy has anything to do with it.
Error:
Argument of type '(RouteLocation & { href: string; }) | undefined' is not assignable to parameter of type 'keyof RouteNamedMap | undefined'.
from i18n.
definePageMeta({
name: 'login'
})
on the login page
So you can use 'name' as localeRoute({ name: 'login' }, locale.value)
for example.
from i18n.
@martijndewit That didn't work. I still see index__en
and user__de
in route names.
from i18n.
How did you set your Routing Strategy ?
from i18n.
Would you be able to provide a reproduction? 🙏
More info
Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
If needs reproduction
labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
👉 Reproduction starter (v8 and higher)
👉 Reproduction starter (edge)
A public GitHub repository is also perfect. 👌
Please ensure that the reproduction is as minimal as possible. See more details in our guide.
You might also find these other articles interesting and/or helpful:
from i18n.
Related Issues (20)
- Content with github source driver HOT 1
- useLocalePath() and then <NuxtLinkLocale> wrongly encoding paths for some uris HOT 1
- Can't match types i18n nuxt.config.ts
- useCookieLocale() does not work in server context (SSR)
- When override locales from Layer, I get an error: When using the langDir option the locales must be a list of objects. How to override Layer configuration from project layer? HOT 3
- Multi-Domain Website configuration with partial shared domains
- Cannot set headers after they are sent to the client - i18n cookie + redirect from auth middleware HOT 1
- Locale is back to default upon navigating HOT 1
- [BUG?]: Locale resolver scans `srcDir` instead of `rootDir` HOT 2
- detectBrowserLanguage does not work in production HOT 3
- undefined title in google SERP? HOT 4
- Unexpected token 'pages' HOT 1
- Need Assistance with Nuxt i18n URL Prefix Format HOT 1
- Routing breaks for pageMeta paths with nested routes HOT 1
- switchLocalePath(): [Vue Router warn]: No match found for location with path
- Cookie based locale detection is not respected in ssg mode HOT 1
- Ability to disable default locale loading if actual locale is present
- Any ways to specify server-side-only translations that are not included in the frontend bundle? HOT 1
- Allow loading of translations from packages HOT 3
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 i18n.