huridocs/uwazi

View on GitHub
app/api/externalIntegrations.v2/automaticTranslation/infrastructure/ATExternalAPI.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { LanguageISO6391 } from 'shared/types/commonTypes';
import { ATGateway } from '../contracts/ATGateway';

export class ATExternalAPI implements ATGateway {
  // eslint-disable-next-line class-methods-use-this
  async supportedLanguages() {
    const result: LanguageISO6391[] = [
      'ru',
      'en',
      'fr',
      'es',
      'ar',
      'zh-Hans',
      'zh-Hant',
      'zh',
      'cs',
      'nl',
      'de',
      'el',
      'he',
      'hi',
      'in',
      'it',
      'ja',
      'ko',
      'fa',
      'pl',
      'pt',
      'ro',
      'tr',
      'uk',
      'vi',
    ];
    return result;
  }
}