Sha256: 1f06cc82c0954a5a9913c034b12e65fc0b412dbe987baa3cda102d95abb78069

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

require 'ununiga/josa_picker'

module Ununiga::I18n
  module JosaTransformer
    def translate(*args)
      transform(super)
    end

    def transform(entry)
      if !entry.is_a?(Hash) && I18n.locale.to_s =~ /ko|ko_KR/i
        return Ununiga::JosaPicker.new(entry).takewell
      end
      entry
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ununiga-1.0.3 lib/ununiga/i18n/josa_transformer.rb