Skip to content

Commit

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

* Remove unneeded translation.

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
justinkambic and elasticmachine authored Sep 1, 2020
1 parent 0d6bb29 commit 84e661b
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 84e661b

Please sign in to comment.