App router can't handle non-English routes #59881
ShahriarKh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
blog/[non-english-slug]/page.jsx
). it's already supported.Background
Currently, only
english-routes/page.jsx
are supported and routes including non-English characters likeنوشته/page.jsx
,ねこ/page.jsx
or🙂/page.jsx
are not recognized.It is possible to use the encoded value as the folder name (like
%D9%86%D9%88%D8%B4%D8%AA%D9%87/page.jsx
), but it's obviously unreadable.Using rewrites is another workaround, but is extra work.
Proposal
If the router handle the decoding/encoding in the background, we can easily use different languages for folder names.
Beta Was this translation helpful? Give feedback.
All reactions