Can we change the way namespaces are specified when Next migrate to layouts? #868
Unanswered
jasonwilliams
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We don't wish to load all of our namespaces in one go for performance reasons so we use the
pages
attribute in i18n.js. However our app has many pages so it starts to become too long and unmaintainable.Is there a better option to manage this without losing the performance benefits?
Next's big update is a breaking opportunity to try out another format. Like using the folders to put a file into instead? This would help with dynamic routes, be easy to keep track of and tidy up should that route no longer be needed.
Maybe something like..
i18n-namespace.json
which lists the namespaces this route uses, this can then be picked up by the scanner. This would also do away with needing regex to handle dynamic routesRelated
Prior Art
Beta Was this translation helpful? Give feedback.
All reactions