@flexem/fc-gui 3.0.0-alpha.148 → 3.0.0-alpha.149
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.
|
@@ -44249,7 +44249,19 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
44249
44249
|
this.validate();
|
|
44250
44250
|
}
|
|
44251
44251
|
initData(option) {
|
|
44252
|
+
var _a, _b, _c;
|
|
44252
44253
|
this.variableName = option.variableName;
|
|
44254
|
+
if (this.variableName === '当前语种ID') {
|
|
44255
|
+
const language = (_c = (_b = (_a = window.abp) === null || _a === void 0 ? void 0 : _a.localization) === null || _b === void 0 ? void 0 : _b.currentLanguage) === null || _c === void 0 ? void 0 : _c.name;
|
|
44256
|
+
const isChinese = language === 'zh-Hans' || language === 'zh';
|
|
44257
|
+
const isTraditionalChinese = language === 'zh-Hant' || language === 'zh-TW' || language === 'zh-tw';
|
|
44258
|
+
if (isTraditionalChinese) {
|
|
44259
|
+
this.variableName = '當前語種ID';
|
|
44260
|
+
}
|
|
44261
|
+
else if (!isChinese) {
|
|
44262
|
+
this.variableName = ' Current Language ID';
|
|
44263
|
+
}
|
|
44264
|
+
}
|
|
44253
44265
|
this.dataType = option.dataType;
|
|
44254
44266
|
this.fBoxDataType = option.fBoxDataType;
|
|
44255
44267
|
this.integerDigits = option.integerDigits ? option.integerDigits : 0;
|