Chore: Migrate REST API - getSupportedLanguagesAutoTranslate to Typescript (#4020)
This commit is contained in:
parent
ef81796cd3
commit
456d017475
|
@ -743,7 +743,8 @@ export const saveAutoTranslate = ({
|
||||||
options?: { defaultLanguage: string };
|
options?: { defaultLanguage: string };
|
||||||
}) => sdk.methodCallWrapper('autoTranslate.saveSettings', rid, field, value, options ?? null);
|
}) => sdk.methodCallWrapper('autoTranslate.saveSettings', rid, field, value, options ?? null);
|
||||||
|
|
||||||
export const getSupportedLanguagesAutoTranslate = () => sdk.methodCallWrapper('autoTranslate.getSupportedLanguages', 'en');
|
export const getSupportedLanguagesAutoTranslate = (): Promise<{ language: string; name: string }[]> =>
|
||||||
|
sdk.methodCallWrapper('autoTranslate.getSupportedLanguages', 'en');
|
||||||
|
|
||||||
export const translateMessage = (message: any, targetLanguage: string) =>
|
export const translateMessage = (message: any, targetLanguage: string) =>
|
||||||
sdk.methodCallWrapper('autoTranslate.translateMessage', message, targetLanguage);
|
sdk.methodCallWrapper('autoTranslate.translateMessage', message, targetLanguage);
|
||||||
|
|
Loading…
Reference in New Issue