mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 08:10:08 +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"
|
||||
}
|
||||
},
|
||||
"errors": {
|
||||
"loginFailedAccessDenied": "Access denied to this bot instance",
|
||||
"loginFailedUnexpectedStatus": "Login failed unexpectedly"
|
||||
},
|
||||
"menu": {
|
||||
"headers": {
|
||||
"chatInteraction": "Chat Interaction",
|
||||
|
|
|
@ -177,9 +177,9 @@ const app = createApp({
|
|||
})
|
||||
.then((resp: Response): any => {
|
||||
if (resp.status !== 200) {
|
||||
let errorText = 'Login failed unexpectedly'
|
||||
let errorText = this.$t('errors.loginFailedUnexpectedStatus')
|
||||
if (resp.status === 403) {
|
||||
errorText = 'Access denied to this bot instance'
|
||||
errorText = this.$t('errors.loginFailedAccessDenied')
|
||||
}
|
||||
|
||||
this.bus.emit(BusEventTypes.LoginProcessing, false)
|
||||
|
|
Loading…
Reference in a new issue