Sha256: cb77120e091cce002d575e55d6c39de2b7c38999d4dd5c6129085da42cb7c352

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 Bytes

Contents

require 'i18n'

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

# TODO there must be a better way to determine language
@lang = (ENV['LANG'][/^([^_]*)/]).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.1 lib/toolbox.rb