lib/typogrowth/string.rb in typogrowth-0.9.5 vs lib/typogrowth/string.rb in typogrowth-0.9.7

- old
+ new

@@ -5,15 +5,15 @@ class String # Typographyes the string and returns a result # See Typogrowth::Parser#parse def typo lang = nil - Typogrowth.parse(self, lang: lang ? lang : I18n.locale) + Typogrowth.parse(self, lang: lang ? lang : is_ru? ? "ru" : I18n.locale) end # Typographyes the string inplace # See Typogrowth::Parser#parse! def typo! lang = nil - Typogrowth.parse!(self, lang: lang ? lang : I18n.locale) + Typogrowth.parse!(self, lang: lang ? lang : is_ru? ? "ru" : I18n.locale) end def is_ru? shadows = [] Typogrowth.is_ru? self, shadows: shadows end