mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
Add error messages to translations
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1a425416b8
commit
32df28f1d8
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