aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/i18n.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-util/src/i18n.ts b/packages/taler-util/src/i18n.ts
index 227798f48..be7cfe6a0 100644
--- a/packages/taler-util/src/i18n.ts
+++ b/packages/taler-util/src/i18n.ts
@@ -70,11 +70,14 @@ export function translate(
/**
* Internationalize a string template without serializing
*/
-export function Translate({ children, ...rest }: { children: any }): any {
+export function Translate({ children, debug, }: { children: any, debug?: boolean }): any {
const c = [].concat(children);
const s = stringifyArray(c);
if (!s) return [];
const translation: string = jed.ngettext(s, s, 1);
+ if (debug) {
+ console.log("looking for ", s, "got", translation)
+ }
return replacePlaceholderWithValues(translation, c);
}