Sha256: 70412d4799a30a374a042ffc6da555c80b7567ca7db0770952d00308ed643466

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

require File.join(File.dirname(__FILE__), 'ukrainian/backend/simple')
require 'i18n'

module Ukrainian
  extend self

  def init_i18n
    I18n.load_path.unshift(*locale_files)
  end

  protected
  def locale_path
    File.join(File.dirname(__FILE__), 'ukrainian', 'locale', '**/*')
  end

  def locale_files
    Dir[locale_path]
  end
end

Ukrainian.init_i18n

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
romanvbabenko-ukrainian-0.1.0 lib/ukrainian.rb
romanvbabenko-ukrainian-0.2.1 lib/ukrainian.rb
romanvbabenko-ukrainian-0.2.2 lib/ukrainian.rb
ukrainian-0.2.2 lib/ukrainian.rb