"use strict";
export class Translation {
/** @param {{Key?:string,NL?:string,EN?:string,DE?:string,FR?:string,C1?:string,C2?:string,C3?:string,C4?:string,C5?:string,C6?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Key;
/** @type {string} */
NL;
/** @type {string} */
EN;
/** @type {string} */
DE;
/** @type {string} */
FR;
/** @type {string} */
C1;
/** @type {string} */
C2;
/** @type {string} */
C3;
/** @type {string} */
C4;
/** @type {string} */
C5;
/** @type {string} */
C6;
}
export class GetTranslationsResponse {
/** @param {{Translations?:Translation[],PreferredLanguage?:string,PreferredLanguageShort?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {Translation[]} */
Translations;
/** @type {string} */
PreferredLanguage;
/** @type {string} */
PreferredLanguageShort;
}
export class GetTranslations {
/** @param {{TranslateKeys?:string[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string[]} */
TranslateKeys;
}
JavaScript GetTranslations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/GetTranslations HTTP/1.1
Host: test-dogw.klokgroep.nl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"TranslateKeys":["String"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Translations":[{"Key":"String","NL":"String","EN":"String","DE":"String","FR":"String","C1":"String","C2":"String","C3":"String","C4":"String","C5":"String","C6":"String"}],"PreferredLanguage":"String","PreferredLanguageShort":"String"}