new(all): New translator services.

This commit is contained in:
Rodrigo Rodriguez 2020-05-17 19:05:43 +00:00
parent 22c7250552
commit e10844dc8e
3 changed files with 9 additions and 932 deletions

931
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -45,5 +45,11 @@ export interface IGBConversationalService {
getCurrentLanguage(step: GBDialogStep);
getNewMobileCode();
sendMarkdownToMobile(min: GBMinInstance, step: GBDialogStep, mobile: string, text: string);
translate(
key: string,
endPoint: string,
text: string,
language: string
): Promise<string>;
}

View file

@ -86,4 +86,6 @@ export interface IGBInstance {
storageDialect: string;
storagePath: string;
adminPass: string;
translatorKey: string;
translatorEndpoint: string;
}