Skip to content

Instantly share code, notes, and snippets.

@dondevi
dondevi / zh.json
Created April 10, 2018 02:26
Tanslation for Ghost.js in `ghost/core/server/translations/`
{
"common": {
"mail": {
"title": "Ghost 在 {domain}"
},
"seeLinkForInstructions": "有关说明,请参阅 {link}。",
"time": {
"seconds": "秒"
},
"api": {
function debounce (fn, delay) {
var timer = -1;
return function () {
var that = this;
var args = arguments;
window.clearTimeout(timer);
timer = window.setTimeout(function () {
fn.apply(that, args);
}, delay || 300);
};
function clearAllInterval () {
let id = setInterval(function () {}, 9999);
while (id > 0) { clearInterval(id--); }
}