diff --git a/back/config/blocked_words/lt.txt b/back/config/blocked_words/lt.txt new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/back/config/initializers/0_locales.rb b/back/config/initializers/0_locales.rb index b42606158e8d..388b37c5c22a 100644 --- a/back/config/initializers/0_locales.rb +++ b/back/config/initializers/0_locales.rb @@ -27,6 +27,7 @@ it-IT kl-GL lb-LU + lt-LT lv-LV mi nb-NO diff --git a/back/engines/commercial/analysis/app/lib/analysis/nlp_cloud_helpers.rb b/back/engines/commercial/analysis/app/lib/analysis/nlp_cloud_helpers.rb index a6b6fd3cc1e4..d9123c025741 100644 --- a/back/engines/commercial/analysis/app/lib/analysis/nlp_cloud_helpers.rb +++ b/back/engines/commercial/analysis/app/lib/analysis/nlp_cloud_helpers.rb @@ -27,6 +27,7 @@ module NLPCloudHelpers 'it-IT' => 'ita_Latn', 'kl-GL' => nil, # Kalaallisut (Greenland) is not present 'lb-LU' => 'ltz_Latn', + 'lt-LT' => 'lit_Latn', 'lv-LV' => 'lav_Latn', 'mi' => nil, # Maori is not present 'nb-NO' => 'nob_Latn', diff --git a/front/app/containers/App/constants-commonjs.js b/front/app/containers/App/constants-commonjs.js index 8e47997670e5..3470e96ab43e 100644 --- a/front/app/containers/App/constants-commonjs.js +++ b/front/app/containers/App/constants-commonjs.js @@ -58,6 +58,7 @@ exports.locales = [ 'hu-HU', 'it-IT', 'kl-GL', + 'lt-LT', 'lb-LU', 'lv-LV', 'mi', @@ -99,6 +100,7 @@ exports.appLocalePairs = { 'it-IT': 'Italiano', 'kl-GL': 'Kalaallisut', 'lb-LU': 'Lëtzebuergesch', + 'lt-LT': 'Lietuvių', 'lv-LV': 'Latviešu', mi: 'Māori', 'nb-NO': 'Norsk (Bokmål)', @@ -141,6 +143,7 @@ exports.appGraphqlLocalePairs = { itIt: 'it-IT', klGl: 'kl-GL', lbLu: 'lb-LU', + ltLT: 'lt', lvLv: 'lv-LV', mi: 'mi', nb: 'nb', @@ -180,6 +183,7 @@ exports.shortenedAppLocalePairs = { 'it-IT': 'Italiano', 'kl-GL': 'Kalaallisut', 'lb-LU': 'Lëtzebuergesch', + 'lt-LT': 'Lietuvių', 'lv-LV': 'Latviešu', mi: 'Māori', 'nb-NO': 'Norsk', @@ -217,6 +221,7 @@ exports.appLocalesMomentPairs = { 'it-IT': 'it', 'kl-GL': 'da', 'lb-LU': 'lb', + 'lt-LT': 'lt', 'lv-LV': 'lv', mi: 'mi', 'nb-NO': 'nb', diff --git a/front/app/containers/App/constants.ts b/front/app/containers/App/constants.ts index ff20af8e5b86..dd01c690cf68 100644 --- a/front/app/containers/App/constants.ts +++ b/front/app/containers/App/constants.ts @@ -43,6 +43,7 @@ export const locales = [ 'hu-HU', 'it-IT', 'kl-GL', + 'lt-LT', 'lb-LU', 'lv-LV', 'mi', @@ -85,6 +86,7 @@ export const appLocalePairs = { 'it-IT': 'Italiano', 'kl-GL': 'Kalaallisut', 'lb-LU': 'Lëtzebuergesch', + 'lt-LT': 'Lietuvių', 'lv-LV': 'Latviešu', mi: 'Māori', 'nb-NO': 'Norsk (Bokmål)', @@ -128,6 +130,7 @@ export const appGraphqlLocalePairs = { itIt: 'it-IT', klGl: 'kl-GL', lbLu: 'lb-LU', + ltLt: 'lt', lvLv: 'lv-LV', mi: 'mi', nb: 'nb', @@ -168,6 +171,7 @@ export const shortenedAppLocalePairs = { 'it-IT': 'Italiano', 'kl-GL': 'Kalaallisut', 'lb-LU': 'Lëtzebuergesch', + 'lt-LT': 'Lietuvių', 'lv-LV': 'Latviešu', mi: 'Māori', 'nb-NO': 'Norsk', @@ -206,6 +210,7 @@ export const appLocalesMomentPairs = { 'it-IT': 'it', 'kl-GL': 'da', 'lb-LU': 'lb', + 'lt-LT': 'Lietuvių', 'lv-LV': 'lv', mi: 'mi', 'nb-NO': 'nb', diff --git a/front/app/i18n/lt-LT.ts b/front/app/i18n/lt-LT.ts new file mode 100644 index 000000000000..229dfd27e653 --- /dev/null +++ b/front/app/i18n/lt-LT.ts @@ -0,0 +1,17 @@ +import ltLT from 'date-fns/locale/lt'; +import { registerLocale } from 'react-datepicker'; + +import { addLocale } from 'components/admin/DatePickers/_shared/locales'; + +import { formatTranslationMessages } from '.'; + +registerLocale('lt-LT', ltLT); +addLocale('lt-LT', ltLT); +const ltAdminTranslationMessages = require('translations/admin/lt-LT.json'); +const ltTranslationMessages = require('translations/lt-LT.json'); +const translationMessages = formatTranslationMessages('lt-LT', { + ...ltTranslationMessages, + ...ltAdminTranslationMessages, +}); + +export default translationMessages;