jordi fita mas
9349cda5f6
I had a weird but that sometimes the application would use Spanish as the default language, even though the user had not passed Spanish as value of the Accept-Language header and the default is hard-coded to Catalan. I learned that language.Matcher **always** returns one of its defined locales, even if there is no way to match the passed list of languages to Match. In that case, it returns a confidence of “No”, meaning that the match failed. Usually go the default Catalan locale because most of the time this was set as the first language to Matcher, but since Go randomizes maps, there were times that Spanish was first. |
||
---|---|---|
.. | ||
app | ||
auth | ||
campsite | ||
database | ||
form | ||
http | ||
locale | ||
template | ||
uuid |