From 69d5512ab9c2382b2a41053ccef20e2c0c083947 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Thu, 7 May 2020 11:57:32 +0200
Subject: [PATCH] Fix the use of interface languages vs languages in select

---
 src/includes/entrepreneur/components/header.pug | 1 -
 src/includes/mentor/components/header.pug       | 6 +++---
 src/includes/public/components/header.pug       | 6 +++---
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/includes/entrepreneur/components/header.pug b/src/includes/entrepreneur/components/header.pug
index ad06c262..728a3821 100644
--- a/src/includes/entrepreneur/components/header.pug
+++ b/src/includes/entrepreneur/components/header.pug
@@ -16,7 +16,6 @@
                 label-languages=''
                 naked
             )
-            
             .dropdownWrapper
                 sib-display#entrepreneur_account_picture.dropdownLabel(
                     bind-user
diff --git a/src/includes/mentor/components/header.pug b/src/includes/mentor/components/header.pug
index 628c69be..dc33c055 100644
--- a/src/includes/mentor/components/header.pug
+++ b/src/includes/mentor/components/header.pug
@@ -8,11 +8,11 @@
         
         div.flex.flex_espace.flex_item_center
             sib-form.languageChoice(
-                data-src=`${endpoints.languages}`
+                data-src=`${endpoints.interfacelanguages}`
                 fields='languages'
-                range-languages=`${endpoints.languages}`
+                range-languages=`${endpoints.interfacelanguages}`
                 widget-languages='sib-form-dropdown'
-                selected-languages=`${endpoints.languages}/1/`
+                selected-languages=`${endpoints.interfacelanguages}1/`
                 label-languages=''
                 naked
             )
diff --git a/src/includes/public/components/header.pug b/src/includes/public/components/header.pug
index 4502d388..249dbc4e 100644
--- a/src/includes/public/components/header.pug
+++ b/src/includes/public/components/header.pug
@@ -8,11 +8,11 @@
         
         div.flex.flex_espace.flex_item_center
             sib-form.languageChoice(
-                data-src=`${endpoints.languages}`
+                data-src=`${endpoints.interfacelanguages}`
                 fields='languages'
-                range-languages=`${endpoints.languages}`
+                range-languages=`${endpoints.interfacelanguages}`
                 widget-languages='sib-form-dropdown'
-                selected-languages=`${endpoints.languages}/1/`
+                selected-languages=`${endpoints.interfacelanguages}1/`
                 label-languages=''
                 naked
             )
-- 
GitLab