```ruby
module Admin::CompetitionsHelper
  def competition_for_form(competition)
    missing_locales = Locale::ALL.keys - competition.locales.map(&:handle)
    missing_locales.each do |locale|
      competition.locales.build(handle: locale)
    end
    competition
  end
end
```

Build competition day for nested attributes in form if none exist yet
user
```ruby
module Admin::CompetitionsHelper
  def competition_for_form(competition)
    missing_locales = Locale::ALL.keys - competition.locales.map(&:handle)
    missing_locales.each do |locale|
      competition.locales.build(handle: locale)
    end

    if competition.days.size == 0
      competition.days.build
    end

    competition
  end
end
```
assistant