aboutsummaryrefslogtreecommitdiff
path: root/src/i18n.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n.tsx')
-rw-r--r--src/i18n.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i18n.tsx b/src/i18n.tsx
index cbc687090..540e3a9d2 100644
--- a/src/i18n.tsx
+++ b/src/i18n.tsx
@@ -41,6 +41,8 @@ if (!strings[lang]) {
console.log(`language ${lang} not found, defaulting to english`);
}
+lang = "sv";
+
const jed = new jedLib.Jed(strings[lang]);
@@ -82,7 +84,9 @@ function stringifyChildren(children: any): string {
}
return `%${n++}$s`;
});
- return ss.join("");
+ const s = ss.join("").replace(/ +/g, " ").trim();
+ console.log("translation lookup", JSON.stringify(s));
+ return s;
}