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

Force locale when creating a new website

parent 3c868dc8
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,8 @@ module Communication::Website::Page::WithType
def initialize_special_page
i18n_key = "communication.website.pages.defaults.#{type_key}"
self.title = I18n.t("#{i18n_key}.title")
self.slug = I18n.t("#{i18n_key}.slug")
self.title = I18n.t("#{i18n_key}.title", locale: language.iso_code)
self.slug = I18n.t("#{i18n_key}.slug", locale: language.iso_code)
self.parent = default_parent
self.full_width = full_width_by_default?
self.published = published_by_default?
......
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