From c43463eca8f9b7e0fce2cc5f7e83cd869e3b0ac9 Mon Sep 17 00:00:00 2001
From: Cyrille Bourgois <cyrille.bourgois@corp.ovh.com>
Date: Fri, 4 Sep 2020 11:48:39 +0200
Subject: [PATCH] fix(config): fix user language (#3574)

ref: MANAGER-5594

Signed-off-by: Cyrille Bourgois <cyrille.bourgois@corp.ovh.com>
---
 .../modules/config/src/environment/environment.service.js       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/manager/modules/config/src/environment/environment.service.js b/packages/manager/modules/config/src/environment/environment.service.js
index f251651f9ed7..b8d34a95fdfa 100644
--- a/packages/manager/modules/config/src/environment/environment.service.js
+++ b/packages/manager/modules/config/src/environment/environment.service.js
@@ -34,7 +34,7 @@ export default class EnvironmentService {
   }
 
   getUserLanguage() {
-    return this.userLocale.split('-')[0];
+    return this.userLocale.split('_')[0];
   }
 
   setVersion(version) {