Skip to content

Commit

Permalink
[Hexlet#138] added name of the profession in title
Browse files Browse the repository at this point in the history
  • Loading branch information
seregad544 authored and fey committed May 5, 2023
1 parent 4e9dae2 commit 86b62d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const Home = (props) => {

const fields = ['duration', 'trial', 'price', 'learning', 'practice', 'internship', 'mentoring', 'employment'];

const header = `${t('home.header')} ${selectedSchools.map((s) => s.name[i18n.language]).join(' и ')}`;
const header = `${t('home.comparing_professions')} ${profession.name} ${t('home.in_schools')} ${selectedSchools.map((s) => s.name[i18n.language]).join(' и ')}`;

const canBeCompared = selectedSchools.every((s) => _.has(s.programs, profession.id));

Expand Down
3 changes: 2 additions & 1 deletion public/locales/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"recommended_books": "Рекомендуемые книги"
},
"home": {
"header": "Выбираю между",
"comparing_professions": "Сравниваю профессию",
"in_schools": "в школах",
"cant_be_compared": "Как минимум в одной из школ нет такой профессии. Сравнивать нечего",
"professions": "Профессии",
"choose_company": "Выберите компанию, которая вам интересна",
Expand Down

0 comments on commit 86b62d5

Please sign in to comment.