2022-01-04 07:28:17 +01:00
|
|
|
map $http_accept_language $header_lang {
|
2022-01-12 15:12:49 +01:00
|
|
|
default '';
|
|
|
|
~*^en-US '';
|
|
|
|
~*^en '';
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^ar ar;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^ca ca;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^cs cs;
|
|
|
|
~*^de de;
|
|
|
|
~*^es es;
|
|
|
|
~*^fa fa;
|
|
|
|
~*^fr fr;
|
|
|
|
~*^ko ko;
|
|
|
|
~*^hi hi;
|
|
|
|
~*^it it;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^he he;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^ka ka;
|
|
|
|
~*^hu hu;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^mk mk;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^nl nl;
|
|
|
|
~*^ja ja;
|
|
|
|
~*^nb nb;
|
|
|
|
~*^pl pl;
|
|
|
|
~*^pt pt;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^ro ro;
|
|
|
|
~*^ru ru;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^sl sl;
|
|
|
|
~*^fi fi;
|
|
|
|
~*^sv sv;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^th th;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^tr tr;
|
|
|
|
~*^uk uk;
|
|
|
|
~*^vi vi;
|
|
|
|
~*^zh zh;
|
|
|
|
}
|
|
|
|
map $cookie_lang $lang {
|
|
|
|
default $header_lang;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^en-US '';
|
|
|
|
~*^en '';
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^ar ar;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^ca ca;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^cs cs;
|
|
|
|
~*^de de;
|
|
|
|
~*^es es;
|
|
|
|
~*^fa fa;
|
|
|
|
~*^fr fr;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^ko ko;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^hi hi;
|
|
|
|
~*^it it;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^he he;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^ka ka;
|
|
|
|
~*^hu hu;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^mk mk;
|
|
|
|
~*^nl nl;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^ja ja;
|
|
|
|
~*^nb nb;
|
|
|
|
~*^pl pl;
|
|
|
|
~*^pt pt;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^ro ro;
|
|
|
|
~*^ru ru;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^sl sl;
|
|
|
|
~*^fi fi;
|
|
|
|
~*^sv sv;
|
2022-01-12 15:12:49 +01:00
|
|
|
~*^th th;
|
2022-01-04 07:28:17 +01:00
|
|
|
~*^tr tr;
|
|
|
|
~*^uk uk;
|
|
|
|
~*^vi vi;
|
|
|
|
~*^zh zh;
|
|
|
|
}
|