File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
kotlin/net/modfest/botfest
resources/translations/botfest Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ suspend fun main() {
6666 " fieldname" to Gson ().fromJson(data.data, AlreadyExists ::class .java).fieldName,
6767 " content" to Gson ().fromJson(data.data, AlreadyExists ::class .java).content
6868 )
69+ PlatformErrorResponse .ErrorType .PERMISSION_ERROR -> Translations .Apierror .permissions
70+ .translateNamed(" err" to data.data.asString)
6971 PlatformErrorResponse .ErrorType .INTERNAL -> Translations .Apierror .internal
7072 .translateNamed(" error" to data.data.asString)
7173 }
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ modal.submit.event.response.success=Thank you for submitting an event! A team me
195195apierror.event_no_exists =An event named {n} doesn' t exists
196196apierror.user_no_exists=A user named {n} doesn' t exists
197197apierror.already_used =A {fieldname} account for {content} already exists
198+ apierror.permissions =You do not have the permissions for this: {errMsg}
198199apierror.internal =An unknown error occurred! Please notify a teammember.\n\
199200 ```\n\
200201 {error}\n\
You can’t perform that action at this time.
0 commit comments