001package org.gwtbootstrap3.extras.summernote.client.ui.base; 002 003/* 004 * #%L 005 * GwtBootstrap3 006 * %% 007 * Copyright (C) 2013 - 2015 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.summernote.client.SummernoteClientBundle; 025 026/** 027 * @author MichaĆ Rybicki (based on DatePickerLanguage by Joshua Godi) 028 */ 029public enum SummernoteLanguage { 030 AR_AR("ar-AR", SummernoteClientBundle.INSTANCE.ar_AR()), 031 BG_BG("bg-BG", SummernoteClientBundle.INSTANCE.bg_BG()), 032 CA_ES("ca-ES", SummernoteClientBundle.INSTANCE.ca_ES()), 033 CS_CZ("cs-CZ", SummernoteClientBundle.INSTANCE.cs_CZ()), 034 DA_DK("da-DK", SummernoteClientBundle.INSTANCE.da_DK()), 035 DE_DE("de-DE", SummernoteClientBundle.INSTANCE.de_DE()), 036 ES_ES("es-ES", SummernoteClientBundle.INSTANCE.es_ES()), 037 ES_EU("es-EU", SummernoteClientBundle.INSTANCE.es_EU()), 038 FA_IR("fa-IR", SummernoteClientBundle.INSTANCE.fa_IR()), 039 FI_FI("fi-FI", SummernoteClientBundle.INSTANCE.fi_FI()), 040 FR_FR("fr-FR", SummernoteClientBundle.INSTANCE.fr_FR()), 041 GL_ES("gl_ES", SummernoteClientBundle.INSTANCE.gl_ES()), 042 HE_IL("he-IL", SummernoteClientBundle.INSTANCE.he_IL()), 043 HR_HR("hr-HR", SummernoteClientBundle.INSTANCE.hr_HR()), 044 HU_HU("hu-HU", SummernoteClientBundle.INSTANCE.hu_HU()), 045 ID_ID("id-ID", SummernoteClientBundle.INSTANCE.id_ID()), 046 IT_IT("it-IT", SummernoteClientBundle.INSTANCE.it_IT()), 047 JA_JP("ja-JP", SummernoteClientBundle.INSTANCE.ja_JP()), 048 KO_KR("ko-KR", SummernoteClientBundle.INSTANCE.ko_KR()), 049 NB_NO("nb-NO", SummernoteClientBundle.INSTANCE.nb_NO()), 050 NL_NL("nl-NL", SummernoteClientBundle.INSTANCE.nl_NL()), 051 LT_LT("lt-LT", SummernoteClientBundle.INSTANCE.lt_LT()), 052 LT_LV("lt-LV", SummernoteClientBundle.INSTANCE.lt_LV()), 053 PL_PL("pl-PL", SummernoteClientBundle.INSTANCE.pl_PL()), 054 PT_BR("pt-BR", SummernoteClientBundle.INSTANCE.pt_BR()), 055 PT_PT("pt-PT", SummernoteClientBundle.INSTANCE.pt_PT()), 056 RO_RO("ro-RO", SummernoteClientBundle.INSTANCE.ro_RO()), 057 RU_RU("ru-RU", SummernoteClientBundle.INSTANCE.ru_RU()), 058 SK_SK("sk-SK", SummernoteClientBundle.INSTANCE.sk_SK()), 059 SL_SL("sl-SI", SummernoteClientBundle.INSTANCE.sl_SI()), 060 SR_RS("sr-RS", SummernoteClientBundle.INSTANCE.sr_RS()), 061 SR_RS_LATIN("sr-RS-Latin", SummernoteClientBundle.INSTANCE.sr_RS_Latin()), 062 SV_SE("sv-SE", SummernoteClientBundle.INSTANCE.sv_SE()), 063 TH_TH("th-TH", SummernoteClientBundle.INSTANCE.th_TH()), 064 TR_TR("tr-TR", SummernoteClientBundle.INSTANCE.tr_TR()), 065 UK_UA("uk-UA", SummernoteClientBundle.INSTANCE.uk_UA()), 066 VI_VN("vi-VN", SummernoteClientBundle.INSTANCE.vi_VN()), 067 ZH_CN("zh-CN", SummernoteClientBundle.INSTANCE.zh_CN()), 068 ZH_TW("zh-TW", SummernoteClientBundle.INSTANCE.zh_TW()), 069 EN_US("en-US", null); // Base language, don't need another file 070 071 private final String code; 072 private final TextResource js; 073 074 private SummernoteLanguage(final String code, final TextResource js) { 075 this.code = code; 076 this.js = js; 077 } 078 079 public String getCode() { 080 return code; 081 } 082 083 public TextResource getJs() { 084 return js; 085 } 086}