Skip to content

Commit

Permalink
refactor: unify error locales for connections 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorylegarec committed Oct 1, 2017
1 parent e755543 commit 64195c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/KonnectorEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const NotExistingDirErrorDescription = ({ t, connector }) => (<DescriptionConten

const GlobalErrorDescription = ({ t, connector }) => (<DescriptionContent
cssClassesObject={{'coz-error': true}}
title={t('account.message.error.global.title')}
messages={[t('account.message.error.global.description', {name: connector.name})]}
title={t('connection.error.default.title')}
messages={[t('connection.error.default.description', {name: connector.name})]}
/>)

const getErrorDescription = (props) => {
Expand Down
8 changes: 4 additions & 4 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@
"bill": "Find your datas in the Drive app at this location:"
},
"error": {
"global": {
"title": "An error occured",
"description": "Unfortunately, something went wrong when trying to connect to %{name}. Please retry or contact the Cozy support on our [forum](https://forum.cozy.io/)."
},
"server": "Apologies, our server had an hiccup, do you mind starting again?",
"bad_credentials": "Sorry, you entered an incorrect login or password.",
"delete": "Apologies, our server had an hiccup, do you mind starting again?"
Expand All @@ -114,6 +110,10 @@

"connection": {
"error": {
"default": {
"title": "An error occured",
"description": "Unfortunately, something went wrong when trying to connect to %{name}. Please retry or contact the Cozy support on our [forum](https://forum.cozy.io/)."
},
"NOT_EXISTING_DIRECTORY": {
"title": "Missing destination folder",
"description": "It seems that this account's destination folder has been deleted. Please restore it by disconnecting this account and then reconnect again."
Expand Down

0 comments on commit 64195c5

Please sign in to comment.