mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Chore: Add remaining server translation keys (#3684)
This commit is contained in:
parent
98b93c887a
commit
2267655e99
8 changed files with 91 additions and 36 deletions
|
@ -342,7 +342,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "The user is inactive or deleted.",
|
msg: "authUserInactiveOrDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -351,7 +352,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "Invalid token.",
|
msg: "authInvalidToken",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,7 +429,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "Invalid Token!",
|
msg: "authInvalidToken",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -437,7 +440,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "Incorrect username or password.",
|
msg: "authIncorrectCreds",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -493,7 +497,8 @@ let needSetup = false;
|
||||||
} else {
|
} else {
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "2FA is already enabled.",
|
msg: "2faAlreadyEnabled",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -523,7 +528,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "2FA Enabled.",
|
msg: "2faEnabled",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
|
@ -552,7 +558,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "2FA Disabled.",
|
msg: "2faDisabled",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
|
@ -584,7 +591,8 @@ let needSetup = false;
|
||||||
} else {
|
} else {
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "Invalid Token.",
|
msg: "authInvalidToken",
|
||||||
|
msgi18n: true,
|
||||||
valid: false,
|
valid: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -647,7 +655,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -700,7 +709,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
monitorID: bean.id,
|
monitorID: bean.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -937,7 +947,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Resumed Successfully.",
|
msg: "successResumed",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -956,7 +967,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Paused Successfully.",
|
msg: "successPaused",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -994,7 +1006,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted Successfully.",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await server.sendMonitorList(socket);
|
await server.sendMonitorList(socket);
|
||||||
|
@ -1056,7 +1069,8 @@ let needSetup = false;
|
||||||
if (bean == null) {
|
if (bean == null) {
|
||||||
callback({
|
callback({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: "Tag not found",
|
msg: "tagNotFound",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1087,7 +1101,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted Successfully.",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1110,7 +1125,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1133,7 +1149,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Edited Successfully.",
|
msg: "successEdited",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1156,7 +1173,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted Successfully.",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1250,7 +1268,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Password has been updated successfully.",
|
msg: "successAuthChangePassword",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1374,7 +1393,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1609,7 +1629,8 @@ let needSetup = false;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Backup successfully restored.",
|
msg: "successBackupRestored",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -38,7 +38,8 @@ module.exports.apiKeySocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
key: formattedKey,
|
key: formattedKey,
|
||||||
keyID: bean.id,
|
keyID: bean.id,
|
||||||
});
|
});
|
||||||
|
@ -82,7 +83,8 @@ module.exports.apiKeySocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted Successfully.",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await sendAPIKeyList(socket);
|
await sendAPIKeyList(socket);
|
||||||
|
@ -109,7 +111,8 @@ module.exports.apiKeySocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Disabled Successfully.",
|
msg: "successDisabled",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await sendAPIKeyList(socket);
|
await sendAPIKeyList(socket);
|
||||||
|
@ -136,7 +139,8 @@ module.exports.apiKeySocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Enabled Successfully",
|
msg: "successEnabled",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await sendAPIKeyList(socket);
|
await sendAPIKeyList(socket);
|
||||||
|
|
|
@ -40,7 +40,8 @@ module.exports.dockerSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -55,7 +55,11 @@ module.exports.generalSocketHandler = (socket, server) => {
|
||||||
testChrome(executable).then((version) => {
|
testChrome(executable).then((version) => {
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Found Chromium/Chrome. Version: " + version,
|
msg: {
|
||||||
|
key: "foundChromiumVersion",
|
||||||
|
values: [ version ],
|
||||||
|
},
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
callback({
|
callback({
|
||||||
|
|
|
@ -30,7 +30,8 @@ module.exports.maintenanceSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
maintenanceID,
|
maintenanceID,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -97,7 +98,8 @@ module.exports.maintenanceSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -131,7 +133,8 @@ module.exports.maintenanceSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Added Successfully.",
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -250,7 +253,8 @@ module.exports.maintenanceSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted Successfully.",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await server.sendMaintenanceList(socket);
|
await server.sendMaintenanceList(socket);
|
||||||
|
@ -283,7 +287,8 @@ module.exports.maintenanceSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Paused Successfully.",
|
msg: "successPaused",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await server.sendMaintenanceList(socket);
|
await server.sendMaintenanceList(socket);
|
||||||
|
@ -316,7 +321,8 @@ module.exports.maintenanceSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Resume Successfully",
|
msg: "successResumed",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await server.sendMaintenanceList(socket);
|
await server.sendMaintenanceList(socket);
|
||||||
|
|
|
@ -47,7 +47,8 @@ module.exports.proxySocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted",
|
msg: "successDeleted",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -284,7 +284,8 @@ module.exports.statusPageSocketHandler = (socket) => {
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "OK!"
|
msg: "successAdded",
|
||||||
|
msgi18n: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -821,5 +821,22 @@
|
||||||
"noOrBadCertificate": "No/Bad Certificate",
|
"noOrBadCertificate": "No/Bad Certificate",
|
||||||
"gamedigGuessPort": "Gamedig: Guess Port",
|
"gamedigGuessPort": "Gamedig: Guess Port",
|
||||||
"gamedigGuessPortDescription": "The port used by Valve Server Query Protocol may be different from the client port. Try this if the monitor cannot connect to your server.",
|
"gamedigGuessPortDescription": "The port used by Valve Server Query Protocol may be different from the client port. Try this if the monitor cannot connect to your server.",
|
||||||
"Saved.": "Saved."
|
"Saved.": "Saved.",
|
||||||
|
"authUserInactiveOrDeleted": "The user is inactive or deleted.",
|
||||||
|
"authInvalidToken": "Invalid Token.",
|
||||||
|
"authIncorrectCreds": "Incorrect username or password.",
|
||||||
|
"2faAlreadyEnabled": "2FA is already enabled.",
|
||||||
|
"2faEnabled": "2FA Enabled.",
|
||||||
|
"2faDisabled": "2FA Disabled.",
|
||||||
|
"successAdded": "Added Successfully.",
|
||||||
|
"successResumed": "Resumed Successfully.",
|
||||||
|
"successPaused": "Paused Successfully.",
|
||||||
|
"successDeleted": "Deleted Successfully.",
|
||||||
|
"successEdited": "Edited Successfully.",
|
||||||
|
"successAuthChangePassword": "Password has been updated successfully.",
|
||||||
|
"successBackupRestored": "Backup successfully restored.",
|
||||||
|
"successDisabled": "Disabled Successfully.",
|
||||||
|
"successEnabled": "Enabled Successfully.",
|
||||||
|
"tagNotFound": "Tag not found.",
|
||||||
|
"foundChromiumVersion": "Found Chromium/Chrome. Version: {0}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue