Replies: 1 comment
-
I see your point, I'd prefer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm working on my next project with your next-intl app, and struggling to get a grip for how everything is configured correctly.
Using webpack aliasing plugin for
i18n/request.ts
or other file path works but hacky, and it doesn't even work well with file reference tracker (e.g. in many IDEs like vscode moving a file triggers update import prompt, buti18n/request.ts
does not.)I have no test yet, but I would expect the usage flow might be like:
as before, and then somewhere in the setup you can import this
request
as an object and callsetGetRequestConfig(request)
to actually apply the intl config, without specifying by the path namei18n/request.ts
.The new function
setGetRuntimeConfig
will be likeBasically it will give more freedom and clearer interface. It is just so pointless to be confused by 'the latest docs says to make
i18n/request.ts
but I have older version that only supportsi18n.ts
' or vice versa like #1309 .Beta Was this translation helpful? Give feedback.
All reactions