mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
web/translations: handle error contexts
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user