Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Why is this being done here? #3134

Closed
gjfei opened this issue Sep 25, 2024 · 1 comment
Closed

Why is this being done here? #3134

gjfei opened this issue Sep 25, 2024 · 1 comment

Comments

@gjfei
Copy link

gjfei commented Sep 25, 2024

Environment

image

Reproduction

image

Describe the bug

locales [
{
code: 'en-us',
iso: 'en',
},
{
code: 'vi',
iso: 'vn',
},
]
defaultLocale en

routers /about
/home

If the current path is "en-us/about", obtaining the path of "home" through useLocalePath will result in "/home". How to get "en-us/home"

Additional context

No response

Logs

No response

@BobbieGoede
Copy link
Collaborator

This sounds more like a question so I will convert this to a discussion. Also, without seeing your configuration and function usage there's no way I can understand your question, can you provide either a minimal reproduction or your i18n config and a code snippet that triggers your issue?

Please format your code snippets like so:

```ts
//code here
```

@nuxt-modules nuxt-modules locked and limited conversation to collaborators Sep 25, 2024
@BobbieGoede BobbieGoede converted this issue into discussion #3135 Sep 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants