export const hasRelations = (tech, type) => getRelations(tech, type).length > 0;
+export const getLanguages = tech => ['en', ...tech.translations.map(t => t.locale)];
+
export const getTranslation = (tech, prop, lang) => {
const direct = tech.translations.find(t => t.locale === lang);
if (direct) {
export default {
compareTranslation,
+ getLanguages,
getRelations,
getTranslation,
hasRelations,