2020-03-05 07:07:48 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-08-20 11:10:24 -04:00
|
|
|
translation_repositories = [
|
|
|
|
FastGettext::TranslationRepository.build(
|
|
|
|
'gitlab',
|
|
|
|
path: File.join(Rails.root, 'locale'),
|
|
|
|
type: :po,
|
|
|
|
ignore_fuzzy: true
|
|
|
|
)
|
|
|
|
]
|
|
|
|
|
|
|
|
Gitlab.jh do
|
|
|
|
translation_repositories.unshift(
|
|
|
|
FastGettext::TranslationRepository.build(
|
|
|
|
'gitlab',
|
|
|
|
path: File.join(Rails.root, 'jh', 'locale'),
|
|
|
|
type: :po,
|
|
|
|
ignore_fuzzy: true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
FastGettext.add_text_domain(
|
|
|
|
'gitlab',
|
|
|
|
type: :chain,
|
|
|
|
chain: translation_repositories,
|
|
|
|
ignore_fuzzy: true
|
|
|
|
)
|
|
|
|
|
2020-03-05 07:07:48 -05:00
|
|
|
FastGettext.default_text_domain = 'gitlab'
|
|
|
|
FastGettext.default_locale = :en
|