appointments.js
1 month ago
attendees.js
1 month ago
colorManipulation.js
1 month ago
customer.js
1 month ago
date.js
3 weeks ago
defaultCustomize.js
3 weeks ago
employee.js
5 days ago
events.js
1 month ago
formFieldsTemplates.js
1 month ago
formatting.js
1 month ago
helper.js
5 days ago
image.js
1 month ago
integrationApple.js
1 month ago
integrationGoogle.js
1 month ago
integrationOutlook.js
1 month ago
integrationStripe.js
1 month ago
integrationZoom.js
1 month ago
licence.js
1 month ago
liveAnnouncer.js
3 weeks ago
phone.js
3 weeks ago
pricing.js
1 month ago
recurring.js
5 days ago
responsive.js
1 month ago
scrollElements.js
1 month ago
settings.js
1 month ago
translationsElementPlus.js
1 month ago
utilHeaderHeight.js
1 month ago
translationsElementPlus.js
250 lines
| 1 | import af from 'element-plus/dist/locale/af.mjs' |
| 2 | import ar from 'element-plus/dist/locale/ar.mjs' |
| 3 | import bg from 'element-plus/dist/locale/bg.mjs' |
| 4 | import bn from 'element-plus/dist/locale/bn.mjs' |
| 5 | import ca from 'element-plus/dist/locale/ca.mjs' |
| 6 | import cs from 'element-plus/dist/locale/cs.mjs' |
| 7 | import da from 'element-plus/dist/locale/da.mjs' |
| 8 | import de from 'element-plus/dist/locale/de.mjs' |
| 9 | import el from 'element-plus/dist/locale/el.mjs' |
| 10 | import en from 'element-plus/dist/locale/en.mjs' |
| 11 | import es from 'element-plus/dist/locale/es.mjs' |
| 12 | import et from 'element-plus/dist/locale/et.mjs' |
| 13 | import eu from 'element-plus/dist/locale/eu.mjs' |
| 14 | import fa from 'element-plus/dist/locale/fa.mjs' |
| 15 | import fi from 'element-plus/dist/locale/fi.mjs' |
| 16 | import fr from 'element-plus/dist/locale/fr.mjs' |
| 17 | import he from 'element-plus/dist/locale/he.mjs' |
| 18 | import hr from 'element-plus/dist/locale/hr.mjs' |
| 19 | import hu from 'element-plus/dist/locale/hu.mjs' |
| 20 | import hyAm from 'element-plus/dist/locale/hy-am.mjs' |
| 21 | import id from 'element-plus/dist/locale/id.mjs' |
| 22 | import it from 'element-plus/dist/locale/it.mjs' |
| 23 | import ja from 'element-plus/dist/locale/ja.mjs' |
| 24 | import kk from 'element-plus/dist/locale/kk.mjs' |
| 25 | import km from 'element-plus/dist/locale/km.mjs' |
| 26 | import ko from 'element-plus/dist/locale/ko.mjs' |
| 27 | import lt from 'element-plus/dist/locale/lt.mjs' |
| 28 | import lv from 'element-plus/dist/locale/lv.mjs' |
| 29 | import mn from 'element-plus/dist/locale/mn.mjs' |
| 30 | import nbNo from 'element-plus/dist/locale/nb-no.mjs' |
| 31 | import nl from 'element-plus/dist/locale/nl.mjs' |
| 32 | import pa from 'element-plus/dist/locale/pa.mjs' |
| 33 | import pl from 'element-plus/dist/locale/pl.mjs' |
| 34 | import pt from 'element-plus/dist/locale/pt.mjs' |
| 35 | import ptBr from 'element-plus/dist/locale/pt-br.mjs' |
| 36 | import ro from 'element-plus/dist/locale/ro.mjs' |
| 37 | import ru from 'element-plus/dist/locale/ru.mjs' |
| 38 | import sk from 'element-plus/dist/locale/sk.mjs' |
| 39 | import sl from 'element-plus/dist/locale/sl.mjs' |
| 40 | import sr from 'element-plus/dist/locale/sr.mjs' |
| 41 | import sv from 'element-plus/dist/locale/sv.mjs' |
| 42 | import ta from 'element-plus/dist/locale/ta.mjs' |
| 43 | import th from 'element-plus/dist/locale/th.mjs' |
| 44 | import tr from 'element-plus/dist/locale/tr.mjs' |
| 45 | import ugCn from 'element-plus/dist/locale/ug-cn.mjs' |
| 46 | import uk from 'element-plus/dist/locale/uk.mjs' |
| 47 | import uzUz from 'element-plus/dist/locale/uz-uz.mjs' |
| 48 | import vi from 'element-plus/dist/locale/vi.mjs' |
| 49 | import zhCn from 'element-plus/dist/locale/zh-cn.mjs' |
| 50 | import zhTw from 'element-plus/dist/locale/zh-tw.mjs' |
| 51 | function elementPlusTranslations(lang) { |
| 52 | let translation |
| 53 | switch (lang) { |
| 54 | case 'af': |
| 55 | translation = af |
| 56 | break |
| 57 | case 'ar': |
| 58 | translation = ar |
| 59 | break |
| 60 | case 'bg_BG': |
| 61 | translation = bg |
| 62 | break |
| 63 | case 'bn_BD': |
| 64 | translation = bn |
| 65 | break |
| 66 | case 'ca': |
| 67 | translation = ca |
| 68 | break |
| 69 | case 'cs_CZ': |
| 70 | translation = cs |
| 71 | break |
| 72 | case 'da_DK': |
| 73 | translation = da |
| 74 | break |
| 75 | case 'de_DE_formal': |
| 76 | case 'de_AT': |
| 77 | case 'de_DE': |
| 78 | case 'de_CH': |
| 79 | case 'de_CH_informal': |
| 80 | translation = de |
| 81 | break |
| 82 | case 'el': |
| 83 | translation = el |
| 84 | break |
| 85 | case 'en_AU': |
| 86 | case 'en_CA': |
| 87 | case 'en_GB': |
| 88 | case 'en_US': |
| 89 | case 'en_NZ': |
| 90 | case 'en_ZA': |
| 91 | translation = en |
| 92 | break |
| 93 | case 'es_PE': |
| 94 | case 'es_CR': |
| 95 | case 'es_EC': |
| 96 | case 'es_CO': |
| 97 | case 'es_UY': |
| 98 | case 'es_PR': |
| 99 | case 'es_GT': |
| 100 | case 'es_AR': |
| 101 | case 'es_CL': |
| 102 | case 'es_MX': |
| 103 | case 'es_ES': |
| 104 | case 'es_VE': |
| 105 | translation = es |
| 106 | break |
| 107 | case 'et': |
| 108 | translation = et |
| 109 | break |
| 110 | case 'eu': |
| 111 | translation = eu |
| 112 | break |
| 113 | case 'fa_IR': |
| 114 | case 'fa_AF': |
| 115 | translation = fa |
| 116 | break |
| 117 | case 'fi': |
| 118 | translation = fi |
| 119 | break |
| 120 | case 'fr_FR': |
| 121 | case 'fr_CA': |
| 122 | case 'fr_BE': |
| 123 | translation = fr |
| 124 | break |
| 125 | case 'he_IL': |
| 126 | translation = he |
| 127 | break |
| 128 | case 'hr': |
| 129 | translation = hr |
| 130 | break |
| 131 | case 'hu_HU': |
| 132 | translation = hu |
| 133 | break |
| 134 | case 'hy': |
| 135 | translation = hyAm |
| 136 | break |
| 137 | case 'id_ID': |
| 138 | translation = id |
| 139 | break |
| 140 | case 'it_IT': |
| 141 | translation = it |
| 142 | break |
| 143 | case 'ja': |
| 144 | translation = ja |
| 145 | break |
| 146 | case 'kk': |
| 147 | translation = kk |
| 148 | break |
| 149 | case 'km': |
| 150 | translation = km |
| 151 | break |
| 152 | case 'ko_KR': |
| 153 | translation = ko |
| 154 | break |
| 155 | case 'lt_LT': |
| 156 | translation = lt |
| 157 | break |
| 158 | case 'lv': |
| 159 | translation = lv |
| 160 | break |
| 161 | case 'mn': |
| 162 | translation = mn |
| 163 | break |
| 164 | case 'nb_NO': |
| 165 | translation = nbNo |
| 166 | break |
| 167 | case 'nl_BE': |
| 168 | case 'nl_NL': |
| 169 | case 'nl_NL_formal': |
| 170 | translation = nl |
| 171 | break |
| 172 | case 'pa_IN': |
| 173 | translation = pa |
| 174 | break |
| 175 | case 'pl_PL': |
| 176 | translation = pl |
| 177 | break |
| 178 | case 'pt_PT_ao90': |
| 179 | case 'pt_PT': |
| 180 | case 'pt_AO': |
| 181 | translation = pt |
| 182 | break |
| 183 | case 'pt_BR': |
| 184 | translation = ptBr |
| 185 | break |
| 186 | case 'ro_RO': |
| 187 | translation = ro |
| 188 | break |
| 189 | case 'ru_RU': |
| 190 | translation = ru |
| 191 | break |
| 192 | case 'sk_SK': |
| 193 | translation = sk |
| 194 | break |
| 195 | case 'sl_SI': |
| 196 | translation = sl |
| 197 | break |
| 198 | case 'sr_RS': |
| 199 | translation = sr |
| 200 | break |
| 201 | case 'sv_SE': |
| 202 | translation = sv |
| 203 | break |
| 204 | case 'ta_IN': |
| 205 | case 'ta_LK': |
| 206 | translation = ta |
| 207 | break |
| 208 | case 'th': |
| 209 | translation = th |
| 210 | break |
| 211 | case 'tr_TR': |
| 212 | translation = tr |
| 213 | break |
| 214 | case 'ug_CN': |
| 215 | translation = ugCn |
| 216 | break |
| 217 | case 'uk': |
| 218 | translation = uk |
| 219 | break |
| 220 | case 'uz_UZ': |
| 221 | translation = uzUz |
| 222 | break |
| 223 | case 'vi': |
| 224 | translation = vi |
| 225 | break |
| 226 | case 'zh_CN': |
| 227 | translation = zhCn |
| 228 | break |
| 229 | case 'zh_TW': |
| 230 | translation = zhTw |
| 231 | break |
| 232 | default: |
| 233 | translation = en |
| 234 | } |
| 235 | |
| 236 | return translation |
| 237 | } |
| 238 | |
| 239 | function monthsTranslationsShort(lang) { |
| 240 | let months = {} |
| 241 | let obj = elementPlusTranslations(lang).el.datepicker.months |
| 242 | Object.keys(obj).forEach((month, index) => { |
| 243 | months[index + 1] = obj[month] |
| 244 | }) |
| 245 | |
| 246 | return months |
| 247 | } |
| 248 | |
| 249 | export { elementPlusTranslations, monthsTranslationsShort } |
| 250 |