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 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,
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"ERROR": "Please enter a valid account name"
|
||||
},
|
||||
"LANGUAGE": {
|
||||
"LABEL": "Site language (Beta)",
|
||||
"LABEL": "Site language",
|
||||
"PLACEHOLDER": "Your account name",
|
||||
"ERROR": ""
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue