diff options
author | Sebastian <sebasjm@gmail.com> | 2021-07-26 11:27:56 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-07-26 11:33:49 -0300 |
commit | 44551245dab36570d937affdb89735c937b4ae55 (patch) | |
tree | fca0e201ce8157122af15abb9aebd1061a773b92 /packages/taler-util | |
parent | e70e664da982baf1b74e6210adaa870c298281d4 (diff) |
i18n
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/i18n.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-util/src/i18n.ts b/packages/taler-util/src/i18n.ts index 0324d8e07..e452ffa9f 100644 --- a/packages/taler-util/src/i18n.ts +++ b/packages/taler-util/src/i18n.ts @@ -45,7 +45,7 @@ function toI18nString(stringSeq: ReadonlyArray<string>): string { /** * Internationalize a string template with arbitrary serialized values. */ -export function str(stringSeq: TemplateStringsArray, ...values: any[]): string { +export function singular(stringSeq: TemplateStringsArray, ...values: any[]): string { const s = toI18nString(stringSeq); const tr = jed .translate(s) @@ -141,7 +141,9 @@ function stringifyArray(children: Array<any>): string { } export const i18n = { - str, + str: singular, + singular, Translate, translate, }; + |