|
|
@ -44,7 +44,8 @@ init({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export const display_error = (error: string) => { |
|
|
|
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(":"); |
|
|
|
const parts = error.split(":"); |
|
|
|
let res = get(format)("errors." + parts[0]); |
|
|
|
let res = get(format)("errors." + parts[0]); |
|
|
|
if (parts[1]) { |
|
|
|
if (parts[1]) { |
|
|
|