mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 08:40:01 +00:00
Add error messages to translations
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5059747156
commit
47119bd296
2 changed files with 6 additions and 2 deletions
|
@ -53,6 +53,10 @@
|
||||||
"header": "Bot-Health"
|
"header": "Bot-Health"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"errors": {
|
||||||
|
"loginFailedAccessDenied": "Access denied to this bot instance",
|
||||||
|
"loginFailedUnexpectedStatus": "Login failed unexpectedly"
|
||||||
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"headers": {
|
"headers": {
|
||||||
"chatInteraction": "Chat Interaction",
|
"chatInteraction": "Chat Interaction",
|
||||||
|
|
|
@ -177,9 +177,9 @@ const app = createApp({
|
||||||
})
|
})
|
||||||
.then((resp: Response): any => {
|
.then((resp: Response): any => {
|
||||||
if (resp.status !== 200) {
|
if (resp.status !== 200) {
|
||||||
let errorText = 'Login failed unexpectedly'
|
let errorText = this.$t('errors.loginFailedUnexpectedStatus')
|
||||||
if (resp.status === 403) {
|
if (resp.status === 403) {
|
||||||
errorText = 'Access denied to this bot instance'
|
errorText = this.$t('errors.loginFailedAccessDenied')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.bus.emit(BusEventTypes.LoginProcessing, false)
|
this.bus.emit(BusEventTypes.LoginProcessing, false)
|
||||||
|
|
Loading…
Reference in a new issue