001package org.gwtbootstrap3.extras.datepicker.client.ui.base.constants; 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 org.gwtbootstrap3.extras.datepicker.client.DatePickerClientBundle; 024 025import com.google.gwt.resources.client.TextResource; 026 027/** 028 * @author Joshua Godi 029 */ 030public enum DatePickerLanguage { 031 AR("ar", DatePickerClientBundle.INSTANCE.ar()), 032 AZ("az", DatePickerClientBundle.INSTANCE.az()), 033 BG("bg", DatePickerClientBundle.INSTANCE.bg()), 034 BS("bs", DatePickerClientBundle.INSTANCE.bs()), 035 CA("ca", DatePickerClientBundle.INSTANCE.ca()), 036 CS("cs", DatePickerClientBundle.INSTANCE.cs()), 037 CY("cy", DatePickerClientBundle.INSTANCE.cy()), 038 DA("da", DatePickerClientBundle.INSTANCE.da()), 039 DE("de", DatePickerClientBundle.INSTANCE.de()), 040 EL("el", DatePickerClientBundle.INSTANCE.el()), 041 EN_GB("en-GB", DatePickerClientBundle.INSTANCE.en_GB()), 042 EO("eo", DatePickerClientBundle.INSTANCE.eo()), 043 ES("es", DatePickerClientBundle.INSTANCE.es()), 044 ET("et", DatePickerClientBundle.INSTANCE.et()), 045 EU("eu", DatePickerClientBundle.INSTANCE.eu()), 046 FA("fa", DatePickerClientBundle.INSTANCE.fa()), 047 FI("fi", DatePickerClientBundle.INSTANCE.fi()), 048 FO("fo", DatePickerClientBundle.INSTANCE.fo()), 049 FR("fr", DatePickerClientBundle.INSTANCE.fr()), 050 FR_CH("fr-CH", DatePickerClientBundle.INSTANCE.fr_CH()), 051 GL("gl", DatePickerClientBundle.INSTANCE.gl()), 052 HE("he", DatePickerClientBundle.INSTANCE.he()), 053 HR("hr", DatePickerClientBundle.INSTANCE.hr()), 054 HU("hu", DatePickerClientBundle.INSTANCE.hu()), 055 HY("hy", DatePickerClientBundle.INSTANCE.hy()), 056 ID("id", DatePickerClientBundle.INSTANCE.id()), 057 IS("is", DatePickerClientBundle.INSTANCE.is()), 058 IT("it", DatePickerClientBundle.INSTANCE.it()), 059 IT_CH("it-CH", DatePickerClientBundle.INSTANCE.it_CH()), 060 JA("ja", DatePickerClientBundle.INSTANCE.ja()), 061 KA("ka", DatePickerClientBundle.INSTANCE.ka()), 062 KH("kh", DatePickerClientBundle.INSTANCE.kh()), 063 KK("kk", DatePickerClientBundle.INSTANCE.kk()), 064 KO("ko", DatePickerClientBundle.INSTANCE.ko()), 065 KR("kr", DatePickerClientBundle.INSTANCE.kr()), 066 LT("lt", DatePickerClientBundle.INSTANCE.lt()), 067 LV("lv", DatePickerClientBundle.INSTANCE.lv()), 068 ME("me", DatePickerClientBundle.INSTANCE.me()), 069 MK("mk", DatePickerClientBundle.INSTANCE.mk()), 070 MN("mn", DatePickerClientBundle.INSTANCE.mn()), 071 MS("ms", DatePickerClientBundle.INSTANCE.ms()), 072 NB("nb", DatePickerClientBundle.INSTANCE.nb()), 073 NL("nl", DatePickerClientBundle.INSTANCE.nl()), 074 NL_BE("nl-BE", DatePickerClientBundle.INSTANCE.nl_BE()), 075 NO("no", DatePickerClientBundle.INSTANCE.no()), 076 PL("pl", DatePickerClientBundle.INSTANCE.pl()), 077 PT("pt", DatePickerClientBundle.INSTANCE.pt()), 078 PT_BR("pt-BR", DatePickerClientBundle.INSTANCE.pt_BR()), 079 RO("ro", DatePickerClientBundle.INSTANCE.ro()), 080 RS("rs", DatePickerClientBundle.INSTANCE.rs()), 081 RS_LATIN("rs-latin", DatePickerClientBundle.INSTANCE.rs_latin()), 082 RU("ru", DatePickerClientBundle.INSTANCE.ru()), 083 SK("sk", DatePickerClientBundle.INSTANCE.sk()), 084 SL("sl", DatePickerClientBundle.INSTANCE.sl()), 085 SQ("sq", DatePickerClientBundle.INSTANCE.sq()), 086 SR("sr", DatePickerClientBundle.INSTANCE.sr()), 087 SR_LATIN("sr-latin", DatePickerClientBundle.INSTANCE.sr_latin()), 088 SV("sv", DatePickerClientBundle.INSTANCE.sv()), 089 SW("sw", DatePickerClientBundle.INSTANCE.sw()), 090 TH("th", DatePickerClientBundle.INSTANCE.th()), 091 TR("tr", DatePickerClientBundle.INSTANCE.tr()), 092 UK("uk", DatePickerClientBundle.INSTANCE.uk()), 093 VI("vi", DatePickerClientBundle.INSTANCE.vi()), 094 ZH_CN("zh-CN", DatePickerClientBundle.INSTANCE.zh_CN()), 095 ZH_TW("zh-TW", DatePickerClientBundle.INSTANCE.zh_TW()), 096 EN("en", null); // Base language, don't need another file 097 098 private final String code; 099 private final TextResource js; 100 101 private DatePickerLanguage(final String code, final TextResource js) { 102 this.js = js; 103 this.code = code; 104 } 105 106 public String getCode() { 107 return code; 108 } 109 110 public TextResource getJs() { 111 return js; 112 } 113}