Sha256: bd33d4514fb230ae989ccef556d456cb674661bdb0f4fbb365743fcfb3cdac03

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

require 'i18n'

I18n.load_path = Dir["#{__dir__}/../locales/*.yml"]

# TODO there must be a better way to determine language
@lang = (ENV['LANG'][0..1]).to_sym
if I18n.available_locales.include? @lang
  I18n.locale = @lang
else
  I18n.locale = :en
  @lang = :en
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
manabu-desktop-0.0.2 lib/tools.rb