gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated: Add i18n to merchant API contract te


From: gnunet
Subject: [taler-docs] branch master updated: Add i18n to merchant API contract terms
Date: Mon, 02 Mar 2020 16:18:57 +0100

This is an automated email from the git hooks/post-receive script.

torsten-grote pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new be60dad  Add i18n to merchant API contract terms
be60dad is described below

commit be60dad5283e0afb0ecbbb167a67fc6ce083d41b
Author: Torsten Grote <address@hidden>
AuthorDate: Mon Mar 2 12:18:18 2020 -0300

    Add i18n to merchant API contract terms
---
 core/api-merchant.rst | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index a02b895..8ff89d2 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -734,7 +734,7 @@ The contract terms must have the following structure:
 
     interface ContractTerms {
       // Human-readable description of the whole purchase
-      summary: string;
+      summary: TranslatableString;
 
       // Unique, free-form identifier for the proposal.
       // Must be unique within a merchant instance.
@@ -856,7 +856,7 @@ The contract terms must have the following structure:
 
     interface Product {
       // Human-readable product description.
-      description: string;
+      description: TranslatableString;
 
       // The quantity of the product to deliver to the customer (optional, if 
applicable)
       quantity?: string;
@@ -880,6 +880,17 @@ The contract terms must have the following structure:
       delivery_location: string;
     }
 
+
+  .. ts:def:: TranslatableString
+
+    interface TranslatableString {
+      // default string to be shown when there is no string for the user's 
locale available
+      _: string;
+      // [locale] is replaced with an IETF BCP 47 language tag for a localized 
string (optional)
+      // more than one locale might be added, the UI chooses the most suitable 
one for display
+      [locale]?: string;
+    }
+
   .. ts:def:: Merchant
 
     interface Merchant {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]