Comments (3)
Hi, did you manage to resolve it. Or more - to use this plugin somehow efficiently?
I now have folder structure like so:
/pages/
|-subfolder1/
|--index.tsx
|-subfolder2/
|--[id]/
|---something
|----index.tsx
would you still put "routes.json" into each subfolder?
So let's say into "subfolder2" it'd contain
/pages/subfolder2/routes.json
"[id]":{
"en": "[id]",
...
}
and
/pages/subfolder2/[id]/routes.json
"something":{
"en": "something",
...
}
from next-translate-routes.
There is no need to add a routes.json
file if you don't want to customize the routes in this subfolder.
I updated the readme: I hope it is clearer now.
from next-translate-routes.
Let me know if it is not clear enough: I can reopen this issue.
from next-translate-routes.
Related Issues (20)
- Automatically make link rel=alternate for SEO? HOT 5
- Error with unit tests HOT 2
- Keep default language locale in the URL HOT 1
- TranslatePath does not respect ignored segment HOT 2
- Setting ?queryparam when on root triggers refresh HOT 1
- Dynamic pages without index.js not translating trough translatePath HOT 1
- yarn install does not work on windows HOT 1
- Duplication with routesTree HOT 1
- "No translate routes data found. next-translate-routes plugin is probably missing from next.config.js" HOT 15
- Query parameter is added to the URL within the address bar. HOT 2
- translate-routes and language change HOT 4
- Breaks jsxImportSource in Nextjs HOT 3
- 1.9.0-3 - navigation to wrong translation reloads the app HOT 1
- Trans component doesn't seem to work in this example HOT 1
- Plugin can't be used with @sentry/nextjs HOT 2
- Route using translated locale/.json file HOT 16
- Can't install the latest version v1.9.0 with yarn HOT 1
- Does this plugin support locale format en-US, es-MX, etc? HOT 2
- Add Next 13 support HOT 3
- Typescript support for Link properties HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-translate-routes.