Aral Roca Gomez

Results 463 comments of Aral Roca Gomez

>thank you, do you have solutions for this? >> Also, how can I make /invalidlocale redirect to /404 Yes, here is an example using `redirect` from `next/navigation`: https://github.com/aralroca/next-translate/blob/de5ad45d005488b36f21fed291e18437af468972/examples/with-app-directory/src/app/%5Blang%5D/layout.tsx#L12-L13

The `i18n` is there to support migration from `pages` to `app`, `i18n` is required for pages, but not for `app`. Feel free for now to remove it. Probably we are...

Can you tried in [3.0.0-canary.1](https://github.com/aralroca/next-translate/releases/tag/3.0.0-canary.1) version? (both, next-translate & next-translate-plugin). Thanks

Please share a repo reproducing the error, otherwise it is very difficult to know what is happening.

Probably is related to https://github.com/aralroca/next-translate/issues/1144 about `generateStaticParams`

Can you tried in [3.0.0-canary.2](https://github.com/aralroca/next-translate/releases/tag/3.0.0-canary.2) version? (both, next-translate & next-translate-plugin). Thanks

Can you tried in [3.0.0-canary.2](https://github.com/aralroca/next-translate/releases/tag/3.0.0-canary.2) version? (both, next-translate & next-translate-plugin). Thanks

I don't remember the reason for this default, but it doesn't make sense to me either. Feel free to do PR, it's here: https://github.com/aralroca/next-translate-plugin/blob/7977c9af6978a22bb471b0c80071aaf2c8b00776/src/index.ts#L31 If all tests pass by removing...

thanks to report it @Meemaw ! we added this part to support [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals): ```ts t`some-key` ``` In template literals is not possible yet to do type safety, but we...

You need to take account the `locale`. More info: https://nextjs.org/docs/app/api-reference/next-config-js/rewrites#rewrites-with-i18n-support