verbal-limeV
Refine3y ago
20 replies
verbal-lime

dynamic i18n resource route prefix path

I already configured the router package (react-router-dom v6) to add a "lang" path prefix to my app, so I can have these routes for example:

- /en/posts
- /es/posts
- /fr/posts
- etc...

But now I have to configure the resources property in the <Refine> component, and I don't know how I can make these two things work together, as it seems that these paths must be static. I still don't understand fully in which circumstances these paths are used by Refine, as I don't use them in my menu navigation components.

I also tried searching here and in github but didn't find anything related.
Was this page helpful?