chore: Enable support for hebrew in dashboard [CW-1736] (#7077)

This commit is contained in:
Nithin David Thomas
2023-05-15 14:03:29 +05:30
committed by GitHub
parent 1936369b12
commit 5a8eff35b5
2 changed files with 4 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import es from './locale/es';
import fa from './locale/fa'; import fa from './locale/fa';
import fi from './locale/fi'; import fi from './locale/fi';
import fr from './locale/fr'; import fr from './locale/fr';
import he from './locale/he';
import hi from './locale/hi'; import hi from './locale/hi';
import hu from './locale/hu'; import hu from './locale/hu';
import id from './locale/id'; import id from './locale/id';
@@ -47,6 +48,7 @@ export default {
fa, fa,
fi, fi,
fr, fr,
he,
hi, hi,
hu, hu,
id, id,

View File

@@ -38,7 +38,8 @@ LANGUAGES_CONFIG = {
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 }, 35 => { name: 'latviešu valoda (lv)', iso_639_3_code: 'lav', iso_639_1_code: 'lv', enabled: true },
36 => { name: 'íslenska (is)', iso_639_3_code: 'isl', iso_639_1_code: 'is', enabled: true } 36 => { name: 'íslenska (is)', iso_639_3_code: 'isl', iso_639_1_code: 'is', enabled: true },
37 => { name: 'עִברִית (he)', iso_639_3_code: 'heb', iso_639_1_code: 'he', 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 }