0f593b1c57
Since we only need the `can?` view helpers there, it's better to include those in a separate controller. If we inherit from `ApplicationController` we also need to deal with authentication, that needs to be done in some, but not all doorkeeper controllers.
9 lines
395 B
Ruby
9 lines
395 B
Ruby
FastGettext.add_text_domain 'gitlab',
|
|
path: File.join(Rails.root, 'locale'),
|
|
type: :po,
|
|
ignore_fuzzy: true
|
|
FastGettext.default_text_domain = 'gitlab'
|
|
FastGettext.default_available_locales = Gitlab::I18n.available_locales
|
|
FastGettext.default_locale = :en
|
|
|
|
I18n.available_locales = Gitlab::I18n.available_locales
|