Module: I18N::Locale
- Defined in:
- lib/primate/i18n.rb
Overview
Locale accessor module
Class Method Summary collapse
-
.get ⇒ String
Get the current locale.
-
.set(value) ⇒ void
Set the current locale.
Class Method Details
.get ⇒ String
Get the current locale
45 46 47 |
# File 'lib/primate/i18n.rb', line 45 def get I18N.instance_variable_get(:@current)&.[]('locale') end |
.set(value) ⇒ void
This method returns an undefined value.
Set the current locale
53 54 55 |
# File 'lib/primate/i18n.rb', line 53 def set(value) I18N.instance_variable_get(:@current)&.set(value) end |