001package org.gwtbootstrap3.extras.bootbox.client.options;
002
003/*
004 * #%L
005 * GwtBootstrap3
006 * %%
007 * Copyright (C) 2016 GwtBootstrap3
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/**
024 * Bootbox locale.
025 *
026 * @author Xiaodong Sun
027 */
028public enum BootboxLocale {
029
030    BG_BG("bg_BG"),
031    BR("br"),
032    CS("cs"),
033    DA("da"),
034    DE("de"),
035    EL("el"),
036    EN("en"),
037    ES("es"),
038    ET("et"),
039    FA("fa"),
040    FI("fi"),
041    FR("fr"),
042    HE("he"),
043    HU("hu"),
044    HR("hr"),
045    ID("id"),
046    IT("it"),
047    JA("ja"),
048    LT("lt"),
049    LV("lv"),
050    NL("nl"),
051    NO("no"),
052    PL("pl"),
053    PT("pt"),
054    RU("ru"),
055    SQ("sq"),
056    SV("sv"),
057    TH("th"),
058    TR("tr"),
059    ZH_CN("zh_CN"),
060    ZH_TW("zh_TW"),
061    ;
062
063    private final String locale;
064
065    private BootboxLocale(final String locale) {
066        this.locale = locale;
067    }
068
069    /**
070     * Returns the locale.
071     *
072     * @return the locale
073     */
074    public String getLocale() {
075        return locale;
076    }
077    
078    /**
079     * Returns the default locale: {@link #EN}.
080     * 
081     * @return the default locale.
082     */
083    public static BootboxLocale getDefault() {
084        return EN;
085    }
086
087}