huridocs/uwazi

View on GitHub
app/shared/language/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { LanguageUtils } from './languageUtils';

const ISO6391Languages = LanguageUtils.getByCode('ISO639_1');
const ISO6391Codes = LanguageUtils.getCodes(ISO6391Languages, 'ISO639_1');

const elasticLanguages = LanguageUtils.getByCode('elastic');
const elasticLanguageCodes = LanguageUtils.getCodes(elasticLanguages, 'elastic');

export { elasticLanguages, elasticLanguageCodes, ISO6391Codes, LanguageUtils };
export { availableLanguages } from './availableLanguages';

export type { LanguageCode } from './availableLanguages';