Skip to content

Commit

Permalink
[Uptime] Translate bare strings (#75918)
Browse files Browse the repository at this point in the history
* Translate a bare string.

* Remove unneeded translation.
  • Loading branch information
justinkambic authored Aug 27, 2020
1 parent f065191 commit d457d53
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ export function* setDynamicSettingsEffect() {
}
yield call(setDynamicSettingsAPI, { settings: action.payload });
yield put(setDynamicSettingsSuccess(action.payload));
kibanaService.core.notifications.toasts.addSuccess('Settings saved!');
kibanaService.core.notifications.toasts.addSuccess(
i18n.translate('xpack.uptime.settings.saveSuccess', {
defaultMessage: 'Settings saved!',
})
);
} catch (err) {
kibanaService.core.notifications.toasts.addError(err, {
title: couldNotSaveSettingsText,
Expand Down

0 comments on commit d457d53

Please sign in to comment.