mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-29 17:58:27 +00:00
web/translations: handle error contexts
This commit is contained in:
parent
7041d61d80
commit
c0284fac13
|
@ -77,7 +77,7 @@
|
|||
|
||||
return createDialog({
|
||||
...defaultErrorPopup,
|
||||
bodyText: $t(response.error.code),
|
||||
bodyText: $t(response.error.code, response?.error?.context),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@ const defaultLocale = 'en';
|
|||
const config: Config<{
|
||||
value?: string;
|
||||
formats?: string;
|
||||
limit?: number;
|
||||
service?: string;
|
||||
}> = {
|
||||
fallbackLocale: defaultLocale,
|
||||
translations: Object.keys(parsedLocfiles).reduce((obj, lang) => {
|
||||
|
|
Loading…
Reference in a new issue