chore: Enable Latvian (lv) language (#5920)

This commit is contained in:
Pranav Raj S 2022-11-22 12:54:13 -08:00 committed by GitHub
parent b5f8524167
commit e593e516b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 2 deletions

View file

@ -15,6 +15,7 @@ import id from './locale/id';
import it from './locale/it';
import ja from './locale/ja';
import ko from './locale/ko';
import lv from './locale/lv';
import ml from './locale/ml';
import nl from './locale/nl';
import no from './locale/no';
@ -52,6 +53,7 @@ export default {
ja,
ko,
ml,
lv,
nl,
no,
pl,

View file

@ -23,7 +23,7 @@
"ERROR": "Please enter a valid account name"
},
"LANGUAGE": {
"LABEL": "Site language (Beta)",
"LABEL": "Site language",
"PLACEHOLDER": "Your account name",
"ERROR": ""
},

View file

@ -15,6 +15,7 @@ import id from './locale/id.json';
import it from './locale/it.json';
import ja from './locale/ja.json';
import ko from './locale/ko.json';
import lv from './locale/lv.json';
import ml from './locale/ml.json';
import nl from './locale/nl.json';
import no from './locale/no.json';
@ -51,6 +52,7 @@ export default {
it,
ja,
ko,
lv,
ml,
nl,
no,

View file

@ -15,6 +15,7 @@ import id from './locale/id.json';
import it from './locale/it.json';
import ja from './locale/ja.json';
import ko from './locale/ko.json';
import lv from './locale/lv.json';
import ml from './locale/ml.json';
import nl from './locale/nl.json';
import no from './locale/no.json';
@ -51,6 +52,7 @@ export default {
it,
ja,
ko,
lv,
ml,
nl,
no,

View file

@ -36,7 +36,8 @@ LANGUAGES_CONFIG = {
31 => { name: 'język polski (pl)', iso_639_3_code: 'pol', iso_639_1_code: 'pl', enabled: true },
32 => { name: 'slovenčina (sk)', iso_639_3_code: 'slk', iso_639_1_code: 'sk', enabled: true },
33 => { name: 'украї́нська мо́ва (uk)', iso_639_3_code: 'ukr', iso_639_1_code: 'uk', enabled: true },
34 => { name: 'ภาษาไทย (th)', iso_639_3_code: 'tha', iso_639_1_code: 'th', enabled: true }
34 => { name: 'ภาษาไทย (th)', iso_639_3_code: 'tha', iso_639_1_code: 'th', enabled: true },
35 => { name: 'latviešu valoda (lv)', iso_639_3_code: 'lav', iso_639_1_code: 'lv', enabled: true }
}.filter { |_key, val| val[:enabled] }.freeze
Rails.configuration.i18n.available_locales = LANGUAGES_CONFIG.map { |_index, lang| lang[:iso_639_1_code].to_sym }