Skip to content

Commit

Permalink
fixed standalone month names Hexlet#150
Browse files Browse the repository at this point in the history
  • Loading branch information
neverovda committed Aug 31, 2020
1 parent 5f0a589 commit 5eaa49c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/web/shared/_education_fields.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
= f.input :description
.row
.col-sm
= f.input :begin_date, as: :date, discard_day: true, include_blank: true, start_year: 1970
= f.input :begin_date, as: :date, discard_day: true, use_month_names: t('standalone_month_names'), include_blank: true, start_year: 1970
= f.input :current, as: :boolean
= f.input :end_date, as: :date, discard_day: true, include_blank: true, start_year: 1970, wrapper_html: { class: 'col-sm' }
= f.input :end_date, as: :date, discard_day: true, use_month_names: t('standalone_month_names'), include_blank: true, start_year: 1970, wrapper_html: { class: 'col-sm' }
= link_to_remove_association t('.remove_education'), f
4 changes: 2 additions & 2 deletions app/views/web/shared/_work_fields.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
= f.input :position
.row
.col-sm
= f.input :begin_date, as: :date, discard_day: true, include_blank: true, start_year: 1970
= f.input :begin_date, as: :date, discard_day: true, use_month_names: t('standalone_month_names'), include_blank: true, start_year: 1970
= f.input :current, as: :boolean
= f.input :end_date, as: :date, discard_day: true, include_blank: true, start_year: 1970, wrapper_html: { class: 'col-sm' }
= f.input :end_date, as: :date, discard_day: true, use_month_names: t('standalone_month_names'), include_blank: true, start_year: 1970, wrapper_html: { class: 'col-sm' }
= f.input :description, as: :text
= link_to_remove_association t('.remove_work'), f
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
en:
standalone_month_names: [January, February, March, April, May, June, July, August, September, October, November, December]
notifications:
new_answer_html: User <a href="%{user_path}">%{user}</a> left a <a href="%{answer_path}">new answer</a> for your resume
new_comment_html: User <a href="%{user_path}">%{user}</a> left a <a href="%{comment_path}">new comment</a> for your resume
Expand Down
1 change: 1 addition & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ru:
standalone_month_names: [Январь, Февраль, Март, Апрель, Май, Июнь, Июль, Август, Сентябрь, Октябрь, Ноябрь, Декабрь]
confirm: Вы уверены?
resume_answer_mailer:
new_answer_email:
Expand Down

0 comments on commit 5eaa49c

Please sign in to comment.