1 export const getTranslation = (tech, prop, lang) => {
2 const direct = tech.translations.find(t => t.locale === lang);
6 const sameLang = tech.translations.find(t => t.locale.substr(0, 2) === lang.substr(0, 2));
13 export const compareTranslation = (prop, lang) => (a, b) =>
14 getTranslation(a, prop, lang).localeCompare(getTranslation(b, prop, lang));