Module: Clacky::I18n
- Defined in:
- lib/clacky/locales/i18n.rb
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.locale ⇒ Object
19 20 21 22 23 24 |
# File 'lib/clacky/locales/i18n.rb', line 19 def self.locale return Thread.current[:lang] if Thread.current[:lang] lang = ENV["LC_ALL"] || ENV["LC_MESSAGES"] || ENV["LANG"] || "" lang.match?(/\Azh/i) ? "zh" : "en" end |