Update Translator.plugin.js
This commit is contained in:
parent
44eb9f42e9
commit
a711d71105
|
@ -927,7 +927,7 @@ module.exports = (_ => {
|
||||||
catch (err) {callback("");}
|
catch (err) {callback("");}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (response.statusCode == 429) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Request Limit per Hour reached.`, {
|
if (response.statusCode == 429) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Hourly Request Limit reached.`, {
|
||||||
type: "danger",
|
type: "danger",
|
||||||
position: "center"
|
position: "center"
|
||||||
});
|
});
|
||||||
|
@ -954,7 +954,7 @@ module.exports = (_ => {
|
||||||
catch (err) {callback("");}
|
catch (err) {callback("");}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (response.statusCode == 429 || response.statusCode == 456) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Request Limit reached.`, {
|
if (response.statusCode == 429 || response.statusCode == 456) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Daily Request Limit reached.`, {
|
||||||
type: "danger",
|
type: "danger",
|
||||||
position: "center"
|
position: "center"
|
||||||
});
|
});
|
||||||
|
@ -1000,7 +1000,7 @@ module.exports = (_ => {
|
||||||
catch (err) {callback("");}
|
catch (err) {callback("");}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (response.statusCode == 429) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Request Limit reached.`, {
|
if (response.statusCode == 429) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Daily Request Limit reached.`, {
|
||||||
type: "danger",
|
type: "danger",
|
||||||
position: "center"
|
position: "center"
|
||||||
});
|
});
|
||||||
|
@ -1090,7 +1090,7 @@ module.exports = (_ => {
|
||||||
catch (err) {callback("");}
|
catch (err) {callback("");}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (response.statusCode == 429) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Request Limit per Hour is reached.`, {
|
if (response.statusCode == 429) BDFDB.NotificationUtils.toast(`${this.labels.toast_translating_failed}. ${this.labels.toast_translating_tryanother}. Hourly Request Limit reached.`, {
|
||||||
type: "danger",
|
type: "danger",
|
||||||
position: "center"
|
position: "center"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue