[openstreetmap/openstreetmap-website] Remove outdated pt translation (Issue #3670)
Holger Jeromin
notifications at github.com
Thu Sep 1 06:42:41 UTC 2022
I would go for a different file matching.
1. find exact match `(request locale) == (file name locale)` "pt-br" => "pt-br.yml"
2. search first match for `(request locale).split('-')[0] == (file name locale)` "pt-br" => "pt.yml" (if no pt-br.yml exists)
3. search first match for `(request locale).split('-')[0] == (file name locale).split('-')[0]` "pt-foo" => "pt-pt.yml" (if no pt.yml exists)
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3670#issuecomment-1233816157
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3670/1233816157 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220831/d3cb9f21/attachment.htm>
More information about the rails-dev
mailing list