From daef2f5be3f7648e50ea345bb5dcd56c74807045 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Fri, 16 Dec 2022 16:54:32 +0100
Subject: [PATCH] default lang

---
 .../websites/configs/development_config/static.html.erb      | 5 ++++-
 .../websites/configs/production_config/static.html.erb       | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/app/views/admin/communication/websites/configs/development_config/static.html.erb b/app/views/admin/communication/websites/configs/development_config/static.html.erb
index 378d0a376..4482ef300 100644
--- a/app/views/admin/communication/websites/configs/development_config/static.html.erb
+++ b/app/views/admin/communication/websites/configs/development_config/static.html.erb
@@ -1,5 +1,8 @@
 # DO NOT EDIT THIS FILE BY HAND - IT WILL BE OVERWRITTEN BY OSUNY
 
-<%# TODO I18n: Add "Default language" in Communication::Website %>
+<% if @website.languages.any? %>
 defaultContentLanguage: <%= @website.default_language.iso_code %>
+<% else %>
+defaultContentLanguage: fr
+<% end %>
 defaultContentLanguageInSubdir: <%= @website.languages.many? %>
\ No newline at end of file
diff --git a/app/views/admin/communication/websites/configs/production_config/static.html.erb b/app/views/admin/communication/websites/configs/production_config/static.html.erb
index b826bccd0..f08667878 100644
--- a/app/views/admin/communication/websites/configs/production_config/static.html.erb
+++ b/app/views/admin/communication/websites/configs/production_config/static.html.erb
@@ -5,5 +5,7 @@ baseURL: <%= @website.url %>
 ## LANGUAGE
 <% if @website.languages.any? %>
 defaultContentLanguage: <%= @website.default_language.iso_code %>
+<% else %>
+defaultContentLanguage: fr
 <% end %>
 defaultContentLanguageInSubdir: <%= @website.languages.many? %>
-- 
GitLab