Add Croatian language

This commit is contained in:
softsimon 2024-08-12 00:07:48 +02:00
parent ca26154426
commit 5178ae43f6
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 5 additions and 1 deletions

View File

@ -151,7 +151,7 @@ export const languages: Language[] = [
{ code: 'fr', name: 'Français' }, // French
// { code: 'gl', name: 'Galego' }, // Galician
{ code: 'ko', name: '한국어' }, // Korean
// { code: 'hr', name: 'Hrvatski' }, // Croatian
{ code: 'hr', name: 'Hrvatski' }, // Croatian
// { code: 'id', name: 'Bahasa Indonesia' },// Indonesian
{ code: 'hi', name: 'हिन्दी' }, // Hindi
{ code: 'ne', name: 'नेपाली' }, // Nepalese

View File

@ -108,6 +108,7 @@ http {
~*^hi hi;
~*^ne ne;
~*^lt lt;
~*^hr hr;
}
map $cookie_lang $lang {
@ -145,6 +146,7 @@ http {
~*^hi hi;
~*^ne ne;
~*^lt lt;
~*^hr hr;
}
server {

View File

@ -32,6 +32,7 @@ map $http_accept_language $header_lang {
~*^vi vi;
~*^zh zh;
~*^lt lt;
~*^hr hr;
}
map $cookie_lang $lang {
default $header_lang;
@ -67,4 +68,5 @@ map $cookie_lang $lang {
~*^vi vi;
~*^zh zh;
~*^lt lt;
~*^hr hr;
}