diff --git a/db/dev_seeds/budgets.rb b/db/dev_seeds/budgets.rb index f9dc8bab6..f131eba5f 100644 --- a/db/dev_seeds/budgets.rb +++ b/db/dev_seeds/budgets.rb @@ -138,6 +138,14 @@ section "Creating Investments" do terms_of_service: "1" ) + random_locales.map do |locale| + Globalize.with_locale(locale) do + investment.title = "Title for locale #{locale}" + investment.description = "

Description for locale #{locale}

" + investment.save! + end + end + add_image_to(investment) if Random.rand > 0.5 end end