module Stringex::Localization
def translate(scope, key, options = {})
def translate(scope, key, options = {}) return if key == "." # I18n doesn't support dots as translation keys so we don't either locale = options[:locale] || self.locale translation = initial_translation(scope, key, locale) return translation unless translation.nil? if locale != default_locale translate scope, key, options.merge(locale: default_locale) else default_conversion(scope, key) || options[:default] end end