diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-03-18 17:37:57 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-03-18 17:37:57 +0100 |
commit | d83a8402bb2fced915c014cd87cd0491f14bdf5f (patch) | |
tree | 13c8c74325c25def246910f0c4a63967b8d9d462 /lib | |
parent | 87e98b0aaeb486410c240d495a99346992080589 (diff) |
remove out-of-place i18n tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/i18n.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/i18n.ts b/lib/i18n.ts index 230bddd7d..b48eb291a 100644 --- a/lib/i18n.ts +++ b/lib/i18n.ts @@ -26,7 +26,6 @@ declare var i18n: any; const JedModule = window["Jed"]; var jed; -var i18nDebug = false; class PluralNumber { @@ -59,17 +58,6 @@ function init () { i18n.lang = "en-US"; } jed = new JedModule(i18n.strings[i18n.lang]); - - if (i18nDebug) { - let link = m("a[href=https://demo.taler.net]", i18n`free KUDOS`); - let i = 1, amount = 5, currency = "EUR", date = new Date(), text = "demo.taler.net"; - console.log(i18n`DEBUG: Your balance on ${date} is ${amount} KUDO. Get more at ${text}`); - console.log(i18n.parts`DEBUG: Your balance on ${date} is ${amount} KUDO. Get more at ${link}`); - console.log(i18n.pluralize(i18n`DEBUG: Your balance is ${amount} KUDO.`, - `DEBUG: Your balance is ${amount} KUDOs.`)); - console.log(i18n.pluralize(i18n`DEBUG: #${i}: Your balance is ${i18n.number(amount)} KUDO.`, - `DEBUG: #${i}: Your balance is ${i18n.number(amount)} KUDOs.`)); - } } @@ -110,11 +98,6 @@ var i18n = <any>function i18n(strings, ...values) { let str = toI18nString (strings); let n = getPluralValue (values); let tr = jed.translate(str).ifPlural(n, str).fetch(...values); - if (i18nDebug) { - console.log('i18n:', 'n: ', n, 'strings:', strings, 'values:', values); - console.log('i18n:', 'str:', str); - console.log('i18n:', 'tr:', tr); - } return tr; }; @@ -153,11 +136,6 @@ i18n.parts = function(strings, ...values) { } } - if (i18nDebug) { - console.log('i18n.parts:', 'n: ', n, 'strings:', strings, 'values:', values); - console.log('i18n.parts:', 'str:', str); - console.log('i18n.parts:', 'parts:', parts); - } return parts; }; |