Make error when last identity translatable

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-11-05 18:15:59 +01:00
parent 33f7c14db6
commit a3d467c23a
3 changed files with 7 additions and 0 deletions

View File

@@ -48,6 +48,11 @@ export const errors: IError[] = [
value: i18n.t("The current identity doesn't have any permission on this event. You should probably change it.") as string,
suggestRefresh: false,
},
{
match: /Cannot remove the last identity of a user/,
value: i18n.t("You can't remove your last identity.") as string,
suggestRefresh: false,
},
{
match: /^No user with this email was found$/,
value: null,