Module: Idiom::Locales
- Included in:
- Base
- Defined in:
- lib/idiom/base.rb
Overview
:nodoc:
Constant Summary collapse
- CONFIG =
LOCALES = YAML.load_file(“./config/locales.yml”)
YAML.load_file("./config/idiom.yml")
- LOCALES =
CONFIG["locales"]
Instance Method Summary collapse
Instance Method Details
#locales ⇒ Object
56 57 58 |
# File 'lib/idiom/base.rb', line 56 def locales @languages || LOCALES.keys end |
#non_us_locales ⇒ Object
locales
49 50 51 52 53 54 |
# File 'lib/idiom/base.rb', line 49 def non_us_locales # @non_us_locales ||= locales.select do |lang| # lang != "en-US" # end locales end |