How to use sprintf-js.call:
GitHub: modstart/ModStartBlog
103 104 105 106 107 108 109 110 111 112
url: Url, L: function () { var lang = arguments[0] if (MS.trans && (lang in MS.trans)) { arguments[0] = MS.trans[lang] return sprintf.call(null, ...arguments) } return sprintf.call(null, ...arguments) } }
10
18
0
See more examples