package org.literacyapp.model.enums;

/**
 * This list represents the currently supported languages.
 */
public enum Locale {
    
    AR("ar"),
    EN("en"),
    ES("es"),
    SW("sw");
    
    private String language;
    
    private String country;
    
    private Locale(String language) {
        this.language = language;
    }
    
    private Locale(String language, String country) {
        this.language = language;
        this.country = country;
    }
    
    public String getLanguage() {
        return language;
    }
    
    public String getCountry() {
        return country;
    }
}

package org.literacyapp.model.enums;

/**
 * This list represents the currently supported languages.
 */
public enum Locale {
    
    AR("ar"),
    EN("en"),
//    EN_US("en", "US"),
    ES("es"),
    SW("sw");
    
    private String language;
    
    private String country;
    
    private Locale(String language) {
        this.language = language;
    }
    
    private Locale(String language, String country) {
        this.language = language;
        this.country = country;
    }
    
    public String getLanguage() {
        return language;
    }
    
    public String getCountry() {
        return country;
    }
}

Format example