Skip to content
Snippets Groups Projects
Unverified Commit 4ad7bd23 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix menu path

parent 333fb3fc
No related merge requests found
......@@ -39,9 +39,9 @@ class Communication::Website::Menu < ApplicationRecord
end
def git_path(website)
# TODO I18n : Right now, we use the language of the website. Add a language to the menu (and future translations)
path = "data/menus/"
path += "#{website.default_language.iso_code}/" if website.languages.any?
# TODO I18n : Right now, we continue to send only a master version
# path += "#{website.default_language.iso_code}/" if website.languages.any?
"#{path}#{identifier}.yml"
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