diff options
author | Rémy Raes <contact@remyraes.com> | 2023-04-17 17:08:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 17:08:48 +0200 |
commit | 420c9bb8d3973eb6cb6f11b9bcf98953348d4c14 (patch) | |
tree | 54ad01d1812b38ca41b9c7c36a47ecb6845d6745 /src-vue/src/views/RepairView.vue | |
parent | c106e8ac0eafdbb1c7c549f93f7e8ad0d3cd558c (diff) | |
download | FlightCore-420c9bb8d3973eb6cb6f11b9bcf98953348d4c14.tar.gz FlightCore-420c9bb8d3973eb6cb6f11b9bcf98953348d4c14.zip |
fix: Repair view add missing i18n (#271)
* feat: Translate repair view notifications
* feat: Add missing localization entries
* feat: Add missing German localization entries
* fix: Wording in German translation
Diffstat (limited to 'src-vue/src/views/RepairView.vue')
-rw-r--r-- | src-vue/src/views/RepairView.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-vue/src/views/RepairView.vue b/src-vue/src/views/RepairView.vue index 3d449d70..c11518d0 100644 --- a/src-vue/src/views/RepairView.vue +++ b/src-vue/src/views/RepairView.vue @@ -56,7 +56,7 @@ export default defineComponent({ } as GameInstall; await invoke("disable_all_but_core", { gameInstall: game_install }) .then((message) => { - showNotification('Success', "Disabled all mods but core"); + showNotification(this.$t('generic.success'), this.$t('settings.repair.window.disable_all_but_core_success')); }) .catch((error) => { showErrorNotification(error); @@ -70,8 +70,8 @@ export default defineComponent({ // Send notification telling the user to wait for the process to finish const notification = showNotification( - 'Force reinstalling Northstar', - 'Please wait', + this.$t('settings.repair.window.reinstall_title'), + this.$t('settings.repair.window.reinstall_text'), 'info', 0 ); @@ -90,7 +90,7 @@ export default defineComponent({ await install_northstar_result .then((message) => { // Send notification - showNotification('Done', `Successfully reinstalled Northstar`); + showNotification(this.$t('generic.done'), this.$t('settings.repair.window.reinstall_success')); this.$store.commit('checkNorthstarUpdates'); }) .catch((error) => { @@ -109,7 +109,7 @@ export default defineComponent({ } as GameInstall; await invoke("clean_up_download_folder_caller", { gameInstall: game_install, force: true }).then((message) => { // Show user notification if task completed. - showNotification('Done', 'Done'); + showNotification(this.$t('generic.done'), this.$t('generic.done')); }) .catch((error) => { showErrorNotification(error); |