2022年3月17日
Before Width: | Height: | Size: 689 KiB After Width: | Height: | Size: 867 KiB |
Before Width: | Height: | Size: 658 KiB After Width: | Height: | Size: 741 KiB |
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 381 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 722 KiB After Width: | Height: | Size: 782 KiB |
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 689 KiB After Width: | Height: | Size: 867 KiB |
Before Width: | Height: | Size: 738 KiB After Width: | Height: | Size: 820 KiB |
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 381 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 86 KiB |
|
@ -1 +1 @@
|
|||
[{"code":"ja","ckey":{"card":"e799cdfb0f535b78df215d9c8b5194af","skill":"58c26f521d3f91023ab2c716f78151f4"},"updateTime":1646999110466},{"code":"en","ckey":{"card":"e4c9c1707051699bce736bad5fb36972","skill":"9b47853d084ec38478c632f7df481380"},"updateTime":1646999110466},{"code":"ko","ckey":{"card":"998ac2c9cbfe9c4551217a1e6373090b","skill":"88741a8efd3e73e2e7eb1bbc0b544586"},"updateTime":1646999110466}]
|
||||
[{"code":"ja","ckey":{"card":"05ec6d8ff2bbe347a54a47e2874bdb3c","skill":"bdf93cd2ec9aa4b0b0661d1a27146332"},"updateTime":1647518466158},{"code":"en","ckey":{"card":"ab1a046b1c85e568ffcd27c76f15ac31","skill":"875dc732159b9ecbde055d5887154e3a"},"updateTime":1647518466158},{"code":"ko","ckey":{"card":"cbeb4a1e2ac9a11b3b62d695f7c3f424","skill":"2c2bf92c96105d34606ccf33ee6a6ceb"},"updateTime":1647518466158}]
|
|
@ -0,0 +1,12 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const OpenCC = require('opencc');
|
||||
const converter = new OpenCC('s2t.json');
|
||||
|
||||
const code = fs.readFileSync("script-json_data.js", {encoding:"utf-8"});
|
||||
function toCHT(match, p1){
|
||||
const cht = converter.convertSync(p1);
|
||||
return `{chs:"${p1}",cht:"${cht}"}`;
|
||||
}
|
||||
let newcode = code.replaceAll(/\{chs:"(.+)?"\}/ig, toCHT);
|
||||
fs.writeFileSync("script-json_data2.js", newcode, {encoding:"utf-8"})
|