Skip to content

Commit

Permalink
add view
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana-js committed May 30, 2024
1 parent 1b64e10 commit 59c7958
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const state = {

yup.setLocale({
string: {
url: () => ({ key: 'errors.invalidRss' }),
url: () => ({ key: 'errors.invalidUrl' }),
},
mixed: {
notoneOf: () => ({ key: 'errors.existsRss' }),
Expand Down
2 changes: 1 addition & 1 deletion src/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
button: 'Добавить',
errors: {
existsRss: 'RSS уже существует',
invalidRss: 'Ресурс не содержит валидный RSS',
invalidUrl: 'Ресурс не содержит валидный RSS',
},
},
};
2 changes: 1 addition & 1 deletion src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default (elements, i18n, state) => {
case 'form.errors':
errorElement.classList.remove('text-success');
errorElement.classList.add('text-danger');
errorElement.textContent = t('invalidRss');
errorElement.textContent = t('invalidUrl');
break;
default:
}
Expand Down

0 comments on commit 59c7958

Please sign in to comment.