def translations_for(route)
RouteTranslator::Translator::RouteHelpers.add route.name, route.route_set.named_routes
available_locales.each do |locale|
translated_path = translate_path(route.path, locale, route.scope)
next unless translated_path
translated_name = translate_name(route.name, locale, route.route_set.named_routes.names)
translated_options_constraints = translate_options_constraints(route.options_constraints, locale)
translated_options = translate_options(route.options, locale)
yield locale, translated_name, translated_path, translated_options_constraints, translated_options
end
end