补充繁体翻译

This commit is contained in:
枫谷剑仙 2022-01-24 12:07:37 +08:00
parent 6cbd64f371
commit c592c88506
3 changed files with 24 additions and 18 deletions

View File

@ -127,6 +127,10 @@
compo_type_card: tp`隊伍中同時存在 ${'ids'}`,
compo_type_series: tp`隊員組成全為 ${'ids'} 合作時`,
compo_type_evolution: tp`隊員組成全為 ${'ids'} 進化時`,
compo_type_rarity: tp`隊伍的總★稀有度 ≤${'rarity'}`,
stage_less_or_equal: tp`${'stage'}${'max'}`, //地下城层数
stage_greater_or_equal: tp`${'stage'}${'min'}`,
L_shape: tp`以L字形式消除5個${'orbs'}`,
heal: tp`${'orbs'}回復${'heal'}${'stats'}`,
@ -173,6 +177,7 @@
teamhp: tp`隊伍總HP`,
teamatk: tp`隊伍${'attrs'}總攻擊力`,
teamrcv: tp`隊伍回復力`,
cstage: tp`當前地下城層數`,
},
unit: {
orbs: tp``,
@ -325,6 +330,7 @@
[79]: tp`${'icon'}3色`,
[80]: tp`${'icon'}4色`,
[81]: tp`${'icon'}5色`,
[82]: tp`${'icon'}12珠`,
}
},
};
@ -332,32 +338,32 @@ deepMerge(localTranslating, _localTranslating);
localisation(localTranslating);
//大數字縮短長度
Number.prototype.bigNumberToString = function()
{
let numTemp = this.valueOf();
Number.prototype.bigNumberToString = function() {
const negative = this < 0;
let numTemp = negative ? Math.abs(this) : this.valueOf();
if (!numTemp) return "0";
const grouping = 1e4;
const unit = ['','萬','億','兆','京','垓'];
const numParts = [];
do{
do {
numParts.push(numTemp % grouping);
numTemp = Math.floor(numTemp / grouping);
}while(numTemp>0 && numParts.length<(unit.length-1))
if (numTemp>0)
{
} while (numTemp > 0 && numParts.length < (unit.length - 1))
if (numTemp > 0) {
numParts.push(numTemp);
}
let numPartsStr = numParts.map((num,idx)=>{
if (num > 0)
{
return (num < 1e3 ? "영" : "") + num.toLocaleString() + unit[idx];
}else
return "영";
let numPartsStr = numParts.map((num, idx) => {
if (num > 0) {
return (num < 1e3 ? "零" : "") + num + unit[idx];
} else
return "零";
});
numPartsStr.reverse(); //反向
let outStr = numPartsStr.join("");
outStr = outStr.replace(/(^영+|영+$)/g,''); //去除開頭的零
outStr = outStr.replace(/영{2,}/g,'영'); //去除多個連續的零
return outStr;
outStr = outStr.replace(/(^零+|零+$)/g, ''); //去除开头的零
outStr = outStr.replace(/零{2,}/g, '零'); //去除多个连续的零
return (negative ? "-" : "") + outStr;
}

View File

@ -1 +1 @@
[{"code":"ja","ckey":{"card":"1a1fa8371097f2ab01e308caa1cddafa","skill":"83aeef3d001aebbb67f719c9f4dd3199"},"updateTime":1642993360326},{"code":"en","ckey":{"card":"3738244d067ea349cdac1abd1bf84144","skill":"027be66d8389a0c583cb09a6509dfd63"},"updateTime":1642684363336},{"code":"ko","ckey":{"card":"4d8b2e01e6f5f01d076abaddb9d54b73","skill":"f91cbcc3af95cb2d78c16e6339b1575f"},"updateTime":1642684363336}]
[{"code":"ja","ckey":{"card":"fbb2b1ca12522736a152da668f1cb155","skill":"83aeef3d001aebbb67f719c9f4dd3199"},"updateTime":1642996908371},{"code":"en","ckey":{"card":"3738244d067ea349cdac1abd1bf84144","skill":"027be66d8389a0c583cb09a6509dfd63"},"updateTime":1642684363336},{"code":"ko","ckey":{"card":"4d8b2e01e6f5f01d076abaddb9d54b73","skill":"f91cbcc3af95cb2d78c16e6339b1575f"},"updateTime":1642684363336}]

File diff suppressed because one or more lines are too long