module RouteTranslator::Translator::Path::Segment

def fallback_options(str, locale)

def fallback_options(str, locale)
  if RouteTranslator.config.disable_fallback && locale.to_s != I18n.default_locale.to_s
    { scope: :routes, fallback: false }
  else
    { scope: :routes, default: str }
  end
end