mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-24 12:08:55 +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({
|
return createDialog({
|
||||||
...defaultErrorPopup,
|
...defaultErrorPopup,
|
||||||
bodyText: $t(response.error.code),
|
bodyText: $t(response.error.code, response?.error?.context),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@ const defaultLocale = 'en';
|
||||||
const config: Config<{
|
const config: Config<{
|
||||||
value?: string;
|
value?: string;
|
||||||
formats?: string;
|
formats?: string;
|
||||||
|
limit?: number;
|
||||||
|
service?: string;
|
||||||
}> = {
|
}> = {
|
||||||
fallbackLocale: defaultLocale,
|
fallbackLocale: defaultLocale,
|
||||||
translations: Object.keys(parsedLocfiles).reduce((obj, lang) => {
|
translations: Object.keys(parsedLocfiles).reduce((obj, lang) => {
|
||||||
|
|
Loading…
Reference in a new issue