1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-27 01:54:34 +00:00
zeripath b228a0aa44
Use index of the supported tags to choose user lang (#15452) (#15488)
Backport #15452

Fix #14793.

The previous implementation used the first return value of matcher.Match, which is the chosen language tag but may contain extensions such as de-DE-u-rg-chzzzz.

As mentioned in the documentation of language package, matcher.Match also returns the index of the supported tags, so I think it is better to use it rather than manipulate the returned language tag.

Co-authored-by: Naohisa Murakami <tiqwab.ch90@gmail.com>
2021-04-15 16:47:43 +02:00
..
2021-01-28 19:08:11 +01:00
2021-03-16 00:20:05 +01:00
2020-04-05 07:20:50 +01:00
2020-10-02 23:37:53 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2021-02-03 22:36:38 +01:00
2020-04-05 07:20:50 +01:00
2021-01-26 16:36:53 +01:00