From 8ccfa5b0385d5fdd0f689a7bda07a6131a658e7a Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 26 Dec 2022 22:39:42 +0400 Subject: [PATCH 1/2] Adding Lithuanian --- frontend/angular.json | 4 ++++ frontend/src/app/app.constants.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/angular.json b/frontend/angular.json index e445f7c22..25d2a302c 100644 --- a/frontend/angular.json +++ b/frontend/angular.json @@ -137,6 +137,10 @@ "hi": { "translation": "src/locale/messages.hi.xlf", "baseHref": "/hi/" + }, + "lt": { + "translation": "src/locale/messages.lt.xlf", + "baseHref": "/lt/" } } }, diff --git a/frontend/src/app/app.constants.ts b/frontend/src/app/app.constants.ts index 9cd374cd0..95e1e756e 100644 --- a/frontend/src/app/app.constants.ts +++ b/frontend/src/app/app.constants.ts @@ -120,7 +120,7 @@ export const languages: Language[] = [ { code: 'he', name: 'עברית' }, // Hebrew { code: 'ka', name: 'ქართული' }, // Georgian // { code: 'lv', name: 'Latviešu' }, // Latvian -// { code: 'lt', name: 'Lietuvių' }, // Lithuanian + { code: 'lt', name: 'Lietuvių' }, // Lithuanian { code: 'hu', name: 'Magyar' }, // Hungarian { code: 'mk', name: 'Македонски' }, // Macedonian // { code: 'ms', name: 'Bahasa Melayu' }, // Malay From fbbd86d8e043fd0908a86fe595cfdc18609cd064 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 26 Dec 2022 22:44:21 +0400 Subject: [PATCH 2/2] Updating nginx to support lithuanian --- nginx.conf | 2 ++ production/nginx/http-language.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index e9bd6034c..4db19d130 100644 --- a/nginx.conf +++ b/nginx.conf @@ -106,6 +106,7 @@ http { ~*^vi vi; ~*^zh zh; ~*^hi hi; + ~*^lt lt; } map $cookie_lang $lang { @@ -141,6 +142,7 @@ http { ~*^vi vi; ~*^zh zh; ~*^hi hi; + ~*^lt lt; } server { diff --git a/production/nginx/http-language.conf b/production/nginx/http-language.conf index 11c3eff33..599ee5d74 100644 --- a/production/nginx/http-language.conf +++ b/production/nginx/http-language.conf @@ -31,6 +31,7 @@ map $http_accept_language $header_lang { ~*^uk uk; ~*^vi vi; ~*^zh zh; + ~*^lt lt; } map $cookie_lang $lang { default $header_lang; @@ -65,4 +66,5 @@ map $cookie_lang $lang { ~*^uk uk; ~*^vi vi; ~*^zh zh; + ~*^lt lt; }