diff --git a/app/javascript/dashboard/i18n/index.js b/app/javascript/dashboard/i18n/index.js index d0e85b43a..17bfab34d 100644 --- a/app/javascript/dashboard/i18n/index.js +++ b/app/javascript/dashboard/i18n/index.js @@ -1,4 +1,5 @@ import ar from './locale/ar'; +import bg from './locale/bg'; import ca from './locale/ca'; import cs from './locale/cs'; import da from './locale/da'; @@ -40,6 +41,7 @@ import lt from './locale/lt'; export default { ar, + bg, ca, cs, da, diff --git a/app/javascript/survey/i18n/index.js b/app/javascript/survey/i18n/index.js index 372017c5e..1a9ea1a59 100644 --- a/app/javascript/survey/i18n/index.js +++ b/app/javascript/survey/i18n/index.js @@ -1,4 +1,5 @@ import ar from './locale/ar.json'; +import bg from './locale/bg.json'; import ca from './locale/ca.json'; import cs from './locale/cs.json'; import da from './locale/da.json'; @@ -40,6 +41,7 @@ import zh_TW from './locale/zh_TW.json'; export default { ar, + bg, ca, cs, da, diff --git a/app/javascript/widget/i18n/index.js b/app/javascript/widget/i18n/index.js index 8e602a4b5..93a371391 100644 --- a/app/javascript/widget/i18n/index.js +++ b/app/javascript/widget/i18n/index.js @@ -1,4 +1,5 @@ import ar from './locale/ar.json'; +import bg from './locale/bg.json'; import ca from './locale/ca.json'; import cs from './locale/cs.json'; import da from './locale/da.json'; @@ -40,6 +41,7 @@ import zh_TW from './locale/zh_TW.json'; export default { ar, + bg, ca, cs, da, diff --git a/config/initializers/languages.rb b/config/initializers/languages.rb index 899359a4c..c34f7a605 100644 --- a/config/initializers/languages.rb +++ b/config/initializers/languages.rb @@ -41,7 +41,8 @@ LANGUAGES_CONFIG = { 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 }, 38 => { name: 'lietuvių (lt)', iso_639_3_code: 'lit', iso_639_1_code: 'lt', enabled: true }, - 39 => { name: 'Српски (sr)', iso_639_3_code: 'srp', iso_639_1_code: 'sr', enabled: true } + 39 => { name: 'Српски (sr)', iso_639_3_code: 'srp', iso_639_1_code: 'sr', enabled: true }, + 40 => { name: 'български (bg)', iso_639_3_code: 'bul', iso_639_1_code: 'bg', 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 }