class I18nTyml::RubyI18nParser
Constants
- I18N_DEFAULT_PATTERN
Public Class Methods
get_locale_ref_array(file_content)
click to toggle source
# File lib/i18n_tyml/ruby_i18n_parser.rb, line 6 def self.get_locale_ref_array(file_content) file_content.scan(I18N_DEFAULT_PATTERN) end
remove_default(file_content)
click to toggle source
# File lib/i18n_tyml/ruby_i18n_parser.rb, line 10 def self.remove_default(file_content) file_content.gsub(I18N_DEFAULT_PATTERN, 'I18n.t("\1"') end