bench-forgejo/modules/web
Naohisa Murakami 1426601cf7
Use index of the supported tags to choose user lang (#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.
2021-04-14 19:52:01 +01:00
..
middleware Use index of the supported tags to choose user lang (#15452) 2021-04-14 19:52:01 +01:00
route.go Fix bug in Wrap (#15302) 2021-04-06 17:40:56 +02:00
route_test.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00