chore: Add bulgarian (bg) language (#12189)

Add bg to supported langauges
This commit is contained in:
Pranav
2025-08-13 10:23:25 -07:00
committed by GitHub
parent 6b42ff8d39
commit 14471cc20c
4 changed files with 8 additions and 1 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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 }