diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-02-22 10:25:11 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-02-22 10:25:11 +0100 |
commit | 42eb17e7e021476227b846d45cc43409aa451b6e (patch) | |
tree | 2a962ee3100aae83c83d27b471d2199ac8954065 /src/i18n.tsx | |
parent | b15f40aea5adcfed4d7ed499ec01988955bdc929 (diff) |
i18n fixes
Diffstat (limited to 'src/i18n.tsx')
-rw-r--r-- | src/i18n.tsx | 6 |
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; } |