From a22160579d6e1f7a17213561cec79c321a14525b Mon Sep 17 00:00:00 2001
From: Julian Wachholz <julian@wachholz.ch>
Date: Mon, 12 Aug 2024 11:54:48 +0200
Subject: [PATCH] fix: i18n: Use 'en' as default language (#3242)

* fix: i18n: Use 'en' as default language

Using 'cimode' as default language code will return the
translation keys verbatim without doing interpolation.
This is unwanted unless working directly on localization.

Fixes #3240

* Add release note
---
 packages/desktop-client/src/i18n.ts | 3 ++-
 upcoming-release-notes/3242.md      | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 upcoming-release-notes/3242.md

diff --git a/packages/desktop-client/src/i18n.ts b/packages/desktop-client/src/i18n.ts
index 70ad5456d..e0a2100b2 100644
--- a/packages/desktop-client/src/i18n.ts
+++ b/packages/desktop-client/src/i18n.ts
@@ -13,7 +13,8 @@ i18n
   .init({
     // While we mark all strings for translations, one can test
     // it by setting the language in localStorage to their choice.
-    lng: localStorage.getItem('language') || 'cimode',
+    // Set this to 'cimode' to see the exact keys without interpolation.
+    lng: localStorage.getItem('language') || 'en',
 
     // allow keys to be phrases having `:`, `.`
     nsSeparator: false,
diff --git a/upcoming-release-notes/3242.md b/upcoming-release-notes/3242.md
new file mode 100644
index 000000000..ccd0bd01f
--- /dev/null
+++ b/upcoming-release-notes/3242.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [julianwachholz]
+---
+
+Fixed translation keys being shown verbatim without interpolation
-- 
GitLab