-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i add prefix before i18n language prefix? #2948
Comments
thank you very much!!! |
add a module and resolved export interface ModuleOptions {} export default defineNuxtModule({ |
Glad to hear you found a solution to your issue! I wonder if setting the |
yeah,thx,i didn't find baseurl can solve
it
…---Original---
From: "Bobbie ***@***.***>
Date: Tue, May 28, 2024 18:57 PM
To: ***@***.***>;
Cc: ***@***.***>;"State ***@***.***>;
Subject: Re: [nuxt-modules/i18n] how can i add prefix before i18n languageprefix? (Issue #2948)
Glad to hear you found a solution to your issue!
I wonder if setting the baseURL for the whole project would have worked as well https://nuxt.com/docs/api/nuxt-config#baseurl? 🤔
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
Describe the feature
Environment
My nuxt and i18n version are:
"@nuxtjs/i18n": "^8.3.1",
"nuxt": "^3.11.2"
Describe the feature
folderStructure
├── pages
│ └── wap
| └──page.ts
nuxt config
i18n: { baseUrl: 'https://my-nuxt-app.com', vueI18n: "./i18n.config.ts", locales: [ { code: "english", name: "english", }, { code: "japanese", name: "japanese", ] }
what's i want?
by default ,the route to this page is —— {lang}/wap/page, but i want it be —— wap/{lang}/page
Additional information
Final checks
The text was updated successfully, but these errors were encountered: