55 lines
571 B
Ruby
55 lines
571 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'yaml'
|
|
|
|
# The language that we use for development.
|
|
DEVELOPMENT_LANGUAGE = 'en'
|
|
|
|
# Languages that we localize to.
|
|
LANGUAGES = %w[
|
|
bg-BG
|
|
ca-ES
|
|
cs-CZ
|
|
da
|
|
de
|
|
el-GR
|
|
en-GB
|
|
es-419
|
|
es
|
|
et-EE
|
|
fi
|
|
fil
|
|
fr-CA
|
|
fr
|
|
hr
|
|
hu
|
|
id
|
|
it
|
|
ja
|
|
ko
|
|
lt-LT
|
|
lv-LV
|
|
ms-MY
|
|
mt
|
|
nb
|
|
nl
|
|
nn-NO
|
|
pl-PL
|
|
pt-BR
|
|
pt-PT
|
|
ro-RO
|
|
ru
|
|
sk-SK
|
|
sl-SI
|
|
sv
|
|
tr
|
|
vi
|
|
zh-Hans
|
|
zh-Hant
|
|
zh-HK
|
|
].freeze
|
|
|
|
LOCALIZATION_DIRECTORIES = YAML.load_file('modules.yaml')['modules'].map do |m|
|
|
m['localization_dir']
|
|
end.compact.freeze
|