        })
        .map(result => this.fromKeyValuePair(result, key));
    }

    private fromKeyValuePair(translations: KeyValuePairString[], key: string) {
        const newTranslation = {
            'ENUMS': {},
        };
        newTranslation.ENUMS[key] = {};
        translations.forEach(keyValue => {
            newTranslation.ENUMS[key][keyValue.key] = keyValue.value;
        });
        return newTranslation;
    }

