|
|
|
@ -44,7 +44,8 @@ init({ |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export const display_error = (error: string) => { |
|
|
|
|
// Check, if error tranlsation does not exist
|
|
|
|
|
console.log(error); |
|
|
|
|
// TODO: Check, if error tranlsation does not exist
|
|
|
|
|
const parts = error.split(":"); |
|
|
|
|
let res = get(format)("errors." + parts[0]); |
|
|
|
|
if (parts[1]) { |
|
|
|
|