Sha256: 7de9645928e59ae1c3eb3def36ba23aa3f9233cfda928f788723113461757f77

Contents?: true

Size: 318 Bytes

Versions: 5

Compression:

Stored size: 318 Bytes

Contents

require 'ununiga/josa_picker'

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ununiga-1.1.2 lib/ununiga/i18n/josa_transformer.rb
ununiga-1.1.1 lib/ununiga/i18n/josa_transformer.rb
ununiga-1.1.0 lib/ununiga/i18n/josa_transformer.rb
ununiga-1.0.5 lib/ununiga/i18n/josa_transformer.rb
ununiga-1.0.4 lib/ununiga/i18n/josa_transformer.rb