Page MenuHomeWildfire Games
Paste P255

Transifex scrapper.
ActivePublic

Authored by Stan on Aug 14 2021, 2:33 PM.
$(".js-widget-languages-all").click()
var stringCount = 5883;
var result = Array.from($(".u-marginBottom-2x.u-flexGrow-1.u-marginRight-2x.u-lineHeight-4x")).map(a => {
var text = a.children[0].innerText.split(" ");
if(text.length > 3)
{
text[1] = text[text.length -2]
}
var count = a.children[1].innerText.split(" ");
if(count)
count = +(count[0].replace(",",""))
return {
lang: text[0],
code: text[1].replace("(","").replace(")","" ),
missingStrings : count,
percentage: (stringCount - count) / stringCount * 100
};
}).sort((a,b) => b.percentage - a.percentage)
.filter(f => ["ko","zh","zh_TW","ja"].every(s => s != f.code) && f.percentage > 80)
var nsis_lang= result.map(a => a.code).join('"\n"')
console.log(result);
console.log(nsis_lang)

Event Timeline

Stan created this paste.Aug 14 2021, 2:33 PM
Stan created this object with visibility "Public (No Login Required)".