Browse Source
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.tags/v1.15.0-rc1
Naohisa Murakami
4 years ago
committed by
GitHub
2 changed files with 10 additions and 8 deletions
Loading…
Reference in new issue