Update Translator.plugin.js

This commit is contained in:
Mirco Wittrien 2022-05-02 05:49:25 +02:00 committed by GitHub
parent 44eb9f42e9
commit a711d71105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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"
}); });