001package org.gwtbootstrap3.extras.select.client.ui; 002 003/* 004 * #%L 005 * GwtBootstrap3 006 * %% 007 * Copyright (C) 2013 - 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 023import com.google.gwt.resources.client.TextResource; 024import org.gwtbootstrap3.extras.select.client.SelectClientBundle; 025 026public enum SelectLanguage { 027 028 AR("ar", SelectClientBundle.INSTANCE.ar()), 029 BG("bg", SelectClientBundle.INSTANCE.bg()), 030 CRO("cro", SelectClientBundle.INSTANCE.cro()), 031 CS("cs", SelectClientBundle.INSTANCE.cs()), 032 DA("da", SelectClientBundle.INSTANCE.da()), 033 DE("de", SelectClientBundle.INSTANCE.de()), 034 EN_US("en-US", SelectClientBundle.INSTANCE.en()), 035 ES_CL("es-CL", SelectClientBundle.INSTANCE.es_CL()), 036 ES_ES("es-ES", SelectClientBundle.INSTANCE.es_ES()), 037 EU("eu", SelectClientBundle.INSTANCE.eu()), 038 FA("fa", SelectClientBundle.INSTANCE.fa()), 039 FI("fi", SelectClientBundle.INSTANCE.fi()), 040 FR("fr", SelectClientBundle.INSTANCE.fr()), 041 HU("hu", SelectClientBundle.INSTANCE.hu()), 042 ID("id", SelectClientBundle.INSTANCE.id()), 043 IT("it", SelectClientBundle.INSTANCE.it()), 044 KO("ko", SelectClientBundle.INSTANCE.ko()), 045 LT("lt", SelectClientBundle.INSTANCE.lt()), 046 NB("nb", SelectClientBundle.INSTANCE.nb()), 047 NL("nl", SelectClientBundle.INSTANCE.nl()), 048 PL("pl", SelectClientBundle.INSTANCE.pl()), 049 PT_BR("pt-BR", SelectClientBundle.INSTANCE.pt_BR()), 050 PT_PT("pt-PT", SelectClientBundle.INSTANCE.pt_PT()), 051 RO("ro", SelectClientBundle.INSTANCE.ro()), 052 RU("ru", SelectClientBundle.INSTANCE.ru()), 053 SK("sk", SelectClientBundle.INSTANCE.sk()), 054 SL("sl", SelectClientBundle.INSTANCE.sl()), 055 SV("sv", SelectClientBundle.INSTANCE.sv()), 056 TR("tr", SelectClientBundle.INSTANCE.tr()), 057 UA("ua", SelectClientBundle.INSTANCE.ua()), 058 ZH_CN("zh-CN", SelectClientBundle.INSTANCE.zh_CN()), 059 ZH_TW("zh-TW", SelectClientBundle.INSTANCE.zh_TW()), 060 EN("en", null); 061 062 private final String code; 063 private final TextResource js; 064 065 private SelectLanguage(final String code, final TextResource js) { 066 this.js = js; 067 this.code = code; 068 } 069 070 public String getCode() { 071 return code; 072 } 073 074 public TextResource getJs() { 075 return js; 076 } 077}