Prioritize English and Spanish in dev seeds
These locales are officially maintained by CONSUL developers, so we're using them when available. This way we'll be able to use `random_locales` in places where we're manually using English and Spanish, giving support to other locales while maintaining compatibility with the current version.
This commit is contained in:
@@ -18,7 +18,7 @@ def log(msg)
|
||||
end
|
||||
|
||||
def random_locales
|
||||
[I18n.default_locale, *I18n.available_locales.sample(4)].uniq
|
||||
[I18n.default_locale, *(I18n.available_locales & %i[en es]), *I18n.available_locales.sample(4)].uniq.take(5)
|
||||
end
|
||||
|
||||
require_relative "dev_seeds/settings"
|
||||
|
||||
Reference in New Issue
Block a user