Skip to content
Snippets Groups Projects
Unverified Commit cbd17b67 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #635 from noesya/fix/menu

Fix path menu
parents 333fb3fc 4ad7bd23
No related branches found
No related tags found
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