camper/pkg
jordi fita mas 9349cda5f6 Take into account the confidence of language.Matcher
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.
2023-08-05 02:08:32 +02:00
..
app Use HTTP Host to establish the request’s company 2023-08-03 20:21:21 +02:00
auth Use HTTP Host to establish the request’s company 2023-08-03 20:21:21 +02:00
campsite Add add_campsite_type function and call it from Go with a proper form 2023-08-04 19:59:58 +02:00
database Add the company’s slug in the URL before company-dependent handlers 2023-07-31 18:51:50 +02:00
form Allow users to update their profile images 2023-07-28 20:15:09 +02:00
http Add the company’s slug in the URL before company-dependent handlers 2023-07-31 18:51:50 +02:00
locale Take into account the confidence of language.Matcher 2023-08-05 02:08:32 +02:00
template Use HTTP Host to establish the request’s company 2023-08-03 20:21:21 +02:00
uuid Add the company’s slug in the URL before company-dependent handlers 2023-07-31 18:51:50 +02:00