mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-24 03:58:49 +01:00
web/translations: handle error contexts
This commit is contained in:
parent
7041d61d80
commit
c0284fac13
2 changed files with 3 additions and 1 deletions
|
@ -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