mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
fixed getTrad
This commit is contained in:
parent
19c2d20388
commit
0b9cb955fa
@ -56,7 +56,7 @@ const AdvancedSettingsPage = () => {
|
||||
onSuccess: () => {
|
||||
notifyStatus(
|
||||
formatMessage({
|
||||
id: 'Form.advancedSettings.data.loaded',
|
||||
id: getTrad('Form.advancedSettings.data.loaded'),
|
||||
defaultMessage: 'Advanced settings data has been loaded',
|
||||
})
|
||||
);
|
||||
@ -64,7 +64,7 @@ const AdvancedSettingsPage = () => {
|
||||
onError: () => {
|
||||
toggleNotification({
|
||||
type: 'warning',
|
||||
message: { id: 'notification.error', defaultMessage: 'An error occured' },
|
||||
message: { id: getTrad('notification.error'), defaultMessage: 'An error occured' },
|
||||
});
|
||||
},
|
||||
});
|
||||
@ -76,7 +76,7 @@ const AdvancedSettingsPage = () => {
|
||||
await queryClient.invalidateQueries('advanced');
|
||||
toggleNotification({
|
||||
type: 'success',
|
||||
message: { id: 'notification.success.saved', defaultMessage: 'Saved' },
|
||||
message: { id: getTrad('notification.success.saved'), defaultMessage: 'Saved' },
|
||||
});
|
||||
|
||||
unlockApp();
|
||||
@ -84,7 +84,7 @@ const AdvancedSettingsPage = () => {
|
||||
onError: () => {
|
||||
toggleNotification({
|
||||
type: 'warning',
|
||||
message: { id: 'notification.error', defaultMessage: 'An error occured' },
|
||||
message: { id: getTrad('notification.error'), defaultMessage: 'An error occured' },
|
||||
});
|
||||
unlockApp();
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user