From 0ba85d6a98783f0d3b7de71b4574a28984714037 Mon Sep 17 00:00:00 2001 From: oruburos Date: Thu, 20 Aug 2020 15:10:54 +0100 Subject: [PATCH 1/2] Translations for Share and AddCollection Overlays called from IDEView --- client/modules/IDE/pages/IDEView.jsx | 14 +++++++------- translations/locales/en-US/translations.json | 8 +++++++- translations/locales/es-419/translations.json | 8 +++++++- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index 9f010c167d..90c2c4b4fb 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -457,15 +457,15 @@ class IDEView extends React.Component { )} {this.props.location.pathname.match(/add-to-collection$/) && ( } isFixedHeight @@ -479,8 +479,8 @@ class IDEView extends React.Component { )} {this.props.ide.shareModalVisible && ( Date: Thu, 20 Aug 2020 17:49:16 +0100 Subject: [PATCH 2/2] Translation in Project for settings saved. --- client/modules/User/actions.js | 2 +- translations/locales/en-US/translations.json | 3 ++- translations/locales/es-419/translations.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/modules/User/actions.js b/client/modules/User/actions.js index d0648be368..a5b22edbbd 100644 --- a/client/modules/User/actions.js +++ b/client/modules/User/actions.js @@ -229,7 +229,7 @@ export function updateSettings(formValues) { dispatch(updateSettingsSuccess(response.data)); browserHistory.push('/'); dispatch(showToast(5500)); - dispatch(setToastText('Settings saved.')); + dispatch(setToastText('Toast.SettingsSaved')); }) .catch((error) => { const { response } = error; diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index 9476aea629..15b056d66c 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -88,7 +88,8 @@ "SketchSaved": "Sketch saved.", "SketchFailedSave": "Failed to save sketch.", "AutosaveEnabled": "Autosave enabled.", - "LangChange": "Language changed" + "LangChange": "Language changed", + "SettingsSaved": "Settings saved." }, "Toolbar": { "Preview": "Preview", diff --git a/translations/locales/es-419/translations.json b/translations/locales/es-419/translations.json index c27c599d76..59112455dd 100644 --- a/translations/locales/es-419/translations.json +++ b/translations/locales/es-419/translations.json @@ -88,7 +88,8 @@ "SketchSaved": "Bosquejo guardado.", "SketchFailedSave": "Fallo al guardar el bosquejo.", "AutosaveEnabled": "Grabado automático activado.", - "LangChange": "Lenguaje cambiado" + "LangChange": "Lenguaje cambiado", + "SettingsSaved": "Configuración guardada." }, "Toolbar": { "Preview": "Vista previa",