Module: Ununiga::I18n::JosaTransformer

Defined in:
lib/ununiga/i18n/josa_transformer.rb

Instance Method Summary collapse

Instance Method Details

#transform(entry) ⇒ Object



9
10
11
12
13
14
# File 'lib/ununiga/i18n/josa_transformer.rb', line 9

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

#translate(*args) ⇒ Object



5
6
7
# File 'lib/ununiga/i18n/josa_transformer.rb', line 5

def translate(*args)
  transform(super)
end