module RouteTranslator::Translator
def locale_from_args(args)
def locale_from_args(args) args_hash = args.find { |arg| arg.is_a?(Hash) } args_hash&.fetch(:locale, nil) end
def locale_from_args(args) args_hash = args.find { |arg| arg.is_a?(Hash) } args_hash&.fetch(:locale, nil) end