Closed cyh2020 closed 6 months ago
thank you very much!!!
add a module and resolved import { defineNuxtModule, extendPages, } from "nuxt/kit";
export interface ModuleOptions {}
export default defineNuxtModule/wap${path}
;
});
});
});
},
});
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? 🤔
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