diff --git a/app/lib/services/restApi.ts b/app/lib/services/restApi.ts index fbf5b862b..d7a140da6 100644 --- a/app/lib/services/restApi.ts +++ b/app/lib/services/restApi.ts @@ -743,7 +743,8 @@ export const saveAutoTranslate = ({ options?: { defaultLanguage: string }; }) => 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) => sdk.methodCallWrapper('autoTranslate.translateMessage', message, targetLanguage);