module RouteTranslator::Translator::Path::Segment
def translate_resource(str, locale, scope)
def translate_resource(str, locale, scope) handler = proc { |exception| exception } opts = { locale: locale, scope: scope } if I18n.t(str, **opts, exception_handler: handler).is_a?(I18n::MissingTranslation) I18n.t! str, **opts, **fallback_options(str, locale) else I18n.t str, **opts end end