diff options
author | Dixsie Wolmers <dixsie@ibm.com> | 2020-05-21 07:27:56 +0300 |
---|---|---|
committer | Dixsie Wolmers <dixsie@ibm.com> | 2020-06-05 21:39:32 +0300 |
commit | e3c9c09eedeb67538cd44c63dc635e33b83752da (patch) | |
tree | cf41836d5cd3a76be3a291e3a387ad59f7014a14 /src/store/modules | |
parent | bb81d55c5cd9db01ad4f7949bc3fb80426570914 (diff) | |
download | webui-vue-e3c9c09eedeb67538cd44c63dc635e33b83752da.tar.xz |
Add Network Settings translations
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: I8d5f6544fb99832bfcda5e4ee63603ce41339d8e
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/Configuration/NetworkSettingsStore.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/store/modules/Configuration/NetworkSettingsStore.js b/src/store/modules/Configuration/NetworkSettingsStore.js index 524ad342..dbeaef65 100644 --- a/src/store/modules/Configuration/NetworkSettingsStore.js +++ b/src/store/modules/Configuration/NetworkSettingsStore.js @@ -1,4 +1,5 @@ import api from '../../api'; +import i18n from '@/i18n'; import { find, remove } from 'lodash'; const NetworkSettingsStore = { @@ -96,11 +97,13 @@ const NetworkSettingsStore = { ) .then(() => dispatch('getEthernetData')) .then(() => { - return 'Successfully configured network settings.'; + return i18n.t('pageNetworkSettings.toast.successSaveNetworkSettings'); }) .catch(error => { console.log(error); - throw new Error('Error configuring network settings.'); + throw new Error( + i18n.t('pageNetworkSettings.toast.errorSaveNetworkSettings') + ); }); } } |