Skip to content

Commit

Permalink
I18nを使うように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
motohiro-mm committed Oct 22, 2024
1 parent 67ffd42 commit 22e4732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/meal_plans_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def meal_timing(meal_form)

def button_display
if action_name == 'new'
'登録'
I18n.t 'helpers.submit.create'
elsif action_name == 'edit'
'更新'
I18n.t 'helpers.submit.update'
end
end
end

0 comments on commit 22e4732

Please sign in to comment.