Skip to content
Snippets Groups Projects
Commit f8bedc03 authored by pabois's avatar pabois
Browse files

quickfix default language

parent 0ba7dd14
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,12 @@ module WithGit
# Handle legacy language-less websites
# TODO I18n: Right now, we use the language of the website. It HAS TO get the language from the object including this concern.
path = "content/"
path += "#{website.languages.first.iso_code}/" if website.languages.any?
if website.languages.many?
# todo totalement arbitraire
path += "fr/"
else
path += "#{website.languages.first.iso_code}/"
end
path
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment