001 package org.gwtbootstrap3.extras.select.client.constants;
002
003 /*
004 * #%L
005 * GwtBootstrap3
006 * %%
007 * Copyright (C) 2013 - 2014 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 import com.google.gwt.resources.client.TextResource;
024 import org.gwtbootstrap3.extras.select.client.SelectClientBundle;
025
026 public enum SelectLanguage {
027 CS("cs", SelectClientBundle.INSTANCE.cs()),
028 DE("de", SelectClientBundle.INSTANCE.de()),
029 EN_US("en-US", SelectClientBundle.INSTANCE.en()),
030 ES("es", SelectClientBundle.INSTANCE.es()),
031 EU("eu", SelectClientBundle.INSTANCE.eu()),
032 FR("fr", SelectClientBundle.INSTANCE.fr()),
033 HU("hu", SelectClientBundle.INSTANCE.hu()),
034 IT("it", SelectClientBundle.INSTANCE.it()),
035 NL("nl", SelectClientBundle.INSTANCE.nl()),
036 PL("pl", SelectClientBundle.INSTANCE.pl()),
037 PT_BR("pt-BR", SelectClientBundle.INSTANCE.pt_BR()),
038 RO("ro", SelectClientBundle.INSTANCE.ro()),
039 RU("ru", SelectClientBundle.INSTANCE.ru()),
040 SL("sl", SelectClientBundle.INSTANCE.sl()),
041 SV("sv", SelectClientBundle.INSTANCE.sv()),
042 TR("tr", SelectClientBundle.INSTANCE.tr()),
043 UA("ua", SelectClientBundle.INSTANCE.ua()),
044 ZH_CN("zh-CN", SelectClientBundle.INSTANCE.zh_CN()),
045 ZH_TW("zh-TW", SelectClientBundle.INSTANCE.zh_TW()),
046 EN("en", null);
047
048 private final String code;
049 private final TextResource js;
050
051 private SelectLanguage(final String code, final TextResource js) {
052 this.js = js;
053 this.code = code;
054 }
055
056 public String getCode() {
057 return code;
058 }
059
060 public TextResource getJs() {
061 return js;
062 }
063 }