[openstreetmap/openstreetmap-website] language fallback problem in OSM website. (#2647)

Tom Hughes notifications at github.com
Tue Jun 9 10:28:53 UTC 2020


I suspect I know what's going on with the first case - because you have `ja` listed right at the end we preserve that as very low priority but as you don't have `ko` listed explicitly we will insert it after the last of the Korean variants (`ko-hani`) that you do have listed so it winds up taking priority over Japanese.

If you didn't have `ja` listed explicitly then we would have inserted it after the last of the Japanese variants (`ja-hani`) which would then have been before `ko` in the list.

In the second case because you have Vietnamese variants listed we insert `vi` after the last of them as a fallback so that then gets selected as there are no other matches as I don't think `zh-Hans` will match at all.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2647#issuecomment-641197559
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200609/cfd9a8a0/attachment.htm>


More information about the rails-dev mailing list