agilebuilder-ui 1.1.82 → 1.1.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -246,7 +246,7 @@ export function isPlateSys(systemCode) {
246
246
  systemCode === 'bs' ||
247
247
  systemCode === 'pcm' ||
248
248
  systemCode === 'hc' ||
249
- systemCode === 'devp'||
249
+ systemCode === 'devp' ||
250
250
  systemCode === 'ucr')
251
251
  ) {
252
252
  return true
@@ -487,6 +487,8 @@ export function cacheAllLanguagesUtil(http) {
487
487
  let langShort
488
488
  if (lang.indexOf('_') > 0) {
489
489
  langShort = lang.substring(0, lang.indexOf('_'))
490
+ } else {
491
+ langShort = lang
490
492
  }
491
493
  if (langShort && langShort === 'zh') {
492
494
  // 中文处理,为了兼容历史逻辑
@@ -1,4 +1,5 @@
1
1
  import axios from 'axios'
2
+ export const EL_LANG_TYPES = ['de', 'vi', 'th', 'ja', 'ko', 'ru', 'fr', 'ar']
2
3
  export function setLangFileUrl(systemCode, lang, url) {
3
4
  let i18nFileUrlsItem = getLocalStorageJson('i18nFileUrls')
4
5
  if (!i18nFileUrlsItem) {
@@ -118,6 +119,9 @@ export function getLocaleByLang(lang) {
118
119
  }
119
120
  if (locale === 'zh') {
120
121
  locale = 'cn'
122
+ } else if (EL_LANG_TYPES.includes(lang)) {
123
+ // element ui的国际化语言包只区分到语言,不区分国家,所以直接使用语言作为locale
124
+ locale = lang
121
125
  }
122
126
  return locale
123
127
  }