aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-12-12 16:30:04 +0100
committerFlorian Dold <florian@dold.me>2023-12-12 16:30:04 +0100
commiteeb3906f4f827860650ba02f1d73f979a4caec89 (patch)
tree86473626baca6a90000eed91703455a0a71b94d1 /packages/taler-util
parente31f18b8f129adb9cbe33158297a9cff56a7143e (diff)
downloadwallet-core-eeb3906f4f827860650ba02f1d73f979a4caec89.tar.xz
wallet-core: i18n-ized terms
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/wallet-types.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index aa498c409..52a272cfa 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1576,6 +1576,13 @@ export interface GetExchangeTosResult {
*/
contentType: string;
+ /**
+ * Language of the returned content.
+ *
+ * If missing, language is unknown.
+ */
+ contentLanguage: string | undefined;
+
tosStatus: ExchangeTosStatus;
}
@@ -1674,12 +1681,14 @@ export const codecForForceExchangeUpdateRequest =
export interface GetExchangeTosRequest {
exchangeBaseUrl: string;
acceptedFormat?: string[];
+ acceptLanguage?: string;
}
export const codecForGetExchangeTosRequest = (): Codec<GetExchangeTosRequest> =>
buildCodecForObject<GetExchangeTosRequest>()
.property("exchangeBaseUrl", codecForString())
.property("acceptedFormat", codecOptional(codecForList(codecForString())))
+ .property("acceptLanguage", codecOptional(codecForString()))
.build("GetExchangeTosRequest");
export interface AcceptManualWithdrawalRequest {