public with sharing class uiController {
    public class Language {
        @AuraEnabled
        public String code;
        @AuraEnabled
        public String name;
        public Language(Framework__Fonteva_Language__c lang) {
            code = lang.Framework__Language_Code__c;
            name = lang.Framework__Display_Name__c;
        }
    }
    @AuraEnabled
    public static List<Language> getLanguages() {
        List<Language> retVal = new List<Language>();
        List<Framework__Fonteva_Language__c> langs = Framework.Selector.parseRun(
            'Select * From Framework__Fonteva_Language__c Where Framework__Is_Active__c = true',
            null
        );
        for (Framework__Fonteva_Language__c lang : langs) {
            retVal.add(new Language(lang));
        }
        return retVal;
    }
}
