chore: Enable Latvian (lv) language (#5920)
This commit is contained in:
parent
b5f8524167
commit
e593e516b8
5 changed files with 9 additions and 2 deletions
|
@ -15,6 +15,7 @@ import id from './locale/id';
|
||||||
import it from './locale/it';
|
import it from './locale/it';
|
||||||
import ja from './locale/ja';
|
import ja from './locale/ja';
|
||||||
import ko from './locale/ko';
|
import ko from './locale/ko';
|
||||||
|
import lv from './locale/lv';
|
||||||
import ml from './locale/ml';
|
import ml from './locale/ml';
|
||||||
import nl from './locale/nl';
|
import nl from './locale/nl';
|
||||||
import no from './locale/no';
|
import no from './locale/no';
|
||||||
|
@ -52,6 +53,7 @@ export default {
|
||||||
ja,
|
ja,
|
||||||
ko,
|
ko,
|
||||||
ml,
|
ml,
|
||||||
|
lv,
|
||||||
nl,
|
nl,
|
||||||
no,
|
no,
|
||||||
pl,
|
pl,
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"ERROR": "Please enter a valid account name"
|
"ERROR": "Please enter a valid account name"
|
||||||
},
|
},
|
||||||
"LANGUAGE": {
|
"LANGUAGE": {
|
||||||
"LABEL": "Site language (Beta)",
|
"LABEL": "Site language",
|
||||||
"PLACEHOLDER": "Your account name",
|
"PLACEHOLDER": "Your account name",
|
||||||
"ERROR": ""
|
"ERROR": ""
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,6 +15,7 @@ import id from './locale/id.json';
|
||||||
import it from './locale/it.json';
|
import it from './locale/it.json';
|
||||||
import ja from './locale/ja.json';
|
import ja from './locale/ja.json';
|
||||||
import ko from './locale/ko.json';
|
import ko from './locale/ko.json';
|
||||||
|
import lv from './locale/lv.json';
|
||||||
import ml from './locale/ml.json';
|
import ml from './locale/ml.json';
|
||||||
import nl from './locale/nl.json';
|
import nl from './locale/nl.json';
|
||||||
import no from './locale/no.json';
|
import no from './locale/no.json';
|
||||||
|
@ -51,6 +52,7 @@ export default {
|
||||||
it,
|
it,
|
||||||
ja,
|
ja,
|
||||||
ko,
|
ko,
|
||||||
|
lv,
|
||||||
ml,
|
ml,
|
||||||
nl,
|
nl,
|
||||||
no,
|
no,
|
||||||
|
|
|
@ -15,6 +15,7 @@ import id from './locale/id.json';
|
||||||
import it from './locale/it.json';
|
import it from './locale/it.json';
|
||||||
import ja from './locale/ja.json';
|
import ja from './locale/ja.json';
|
||||||
import ko from './locale/ko.json';
|
import ko from './locale/ko.json';
|
||||||
|
import lv from './locale/lv.json';
|
||||||
import ml from './locale/ml.json';
|
import ml from './locale/ml.json';
|
||||||
import nl from './locale/nl.json';
|
import nl from './locale/nl.json';
|
||||||
import no from './locale/no.json';
|
import no from './locale/no.json';
|
||||||
|
@ -51,6 +52,7 @@ export default {
|
||||||
it,
|
it,
|
||||||
ja,
|
ja,
|
||||||
ko,
|
ko,
|
||||||
|
lv,
|
||||||
ml,
|
ml,
|
||||||
nl,
|
nl,
|
||||||
no,
|
no,
|
||||||
|
|
|
@ -36,7 +36,8 @@ LANGUAGES_CONFIG = {
|
||||||
31 => { name: 'język polski (pl)', iso_639_3_code: 'pol', iso_639_1_code: 'pl', enabled: true },
|
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 },
|
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 },
|
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
|
}.filter { |_key, val| val[:enabled] }.freeze
|
||||||
|
|
||||||
Rails.configuration.i18n.available_locales = LANGUAGES_CONFIG.map { |_index, lang| lang[:iso_639_1_code].to_sym }
|
Rails.configuration.i18n.available_locales = LANGUAGES_CONFIG.map { |_index, lang| lang[:iso_639_1_code].to_sym }
|
||||||
|
|
Loading…
Reference in a new issue