aboutsummaryrefslogtreecommitdiff
path: root/src/i18n.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-29 23:12:55 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-29 23:12:55 +0200
commitdefbf625bdef0f8a666b72b8ce99de5e01af6b91 (patch)
tree1bfe7c1ae0b56721d764893f62aca17271a20dbd /src/i18n.tsx
parent1390175a9afc53948dd1d6f8a2f88e51c1bf53cc (diff)
url-based pay/withdraw, use react hooks
Diffstat (limited to 'src/i18n.tsx')
-rw-r--r--src/i18n.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i18n.tsx b/src/i18n.tsx
index 29df1c5af..67df6c516 100644
--- a/src/i18n.tsx
+++ b/src/i18n.tsx
@@ -31,6 +31,8 @@ import * as React from "react";
const jed = setupJed();
+let enableTracing = false;
+
/**
* Set up jed library for internationalization,
@@ -94,7 +96,7 @@ function stringifyChildren(children: any): string {
return `%${n++}$s`;
});
const s = ss.join("").replace(/ +/g, " ").trim();
- console.log("translation lookup", JSON.stringify(s));
+ enableTracing && console.log("translation lookup", JSON.stringify(s));
return s;
}