Fix broken tests caused by locale configuration (#1875)
* Fix broken tests caused by locale configuration

- Add LocaleSet
- Add LocaleFormatter to force proper string formats
- Rename I18n formats to use hyphen
- Add rake task for updating existing languages on DB
- Fix instances of US english in the templates

* Fix FastGettext initializer loader

* Add Amazon S3 creds for Travis

* Revert "Add Amazon S3 creds for Travis"

This reverts commit 366c1a7.

* Fix Faker localization for rake tasks

Was breaking rake db:seed file
dev
1 parent b4727e5 commit 9d3df90d33e191d94280607b4d9b0d35595774d4
@Gavin Morrice Gavin Morrice authored on 20 Sep 2018
Sam Rust committed on 20 Sep 2018
Showing 64 changed files
View
.travis.yml
View
app/models/language.rb
View
app/views/org_admin/phases/_phase.html.erb
View
app/views/org_admin/templates/_show.html.erb
View
app/views/org_admin/templates/index.html.erb
View
config/environments/development.rb
View
config/environments/test.rb
View
config/initializers/fast_gettext.rb
View
config/initializers/locale.rb
View
config/locales/bootstrap/en-GB.bootstrap.yml 0 → 100644
View
config/locales/bootstrap/en-US.bootstrap.yml 0 → 100644
View
config/locales/bootstrap/en_GB.bootstrap.yml 100644 → 0
View
config/locales/bootstrap/en_US.bootstrap.yml 100644 → 0
View
config/locales/bootstrap/fr-FR.bootstrap.yml 0 → 100644
View
config/locales/bootstrap/fr_FR.bootstrap.yml 100644 → 0
View
config/locales/bootstrap/pt-BR.bootstrap.yml 0 → 100644
View
config/locales/bootstrap/pt_BR.bootstrap.yml 100644 → 0
View
config/locales/contact_us/contact_us.en-GB.yml 0 → 100644
View
config/locales/contact_us/contact_us.en-US.yml 0 → 100644
View
config/locales/contact_us/contact_us.en_GB.yml 100644 → 0
View
config/locales/contact_us/contact_us.en_US.yml 100644 → 0
View
config/locales/contact_us/contact_us.fr-FR.yml 0 → 100644
View
config/locales/contact_us/contact_us.fr_FR.yml 100644 → 0
View
config/locales/contact_us/contact_us.pt_BR.yml 100644 → 0
View
config/locales/contact_us/contact_us.zh-TW.yml
View
config/locales/devise/devise.en-GB.yml 0 → 100644
View
config/locales/devise/devise.en-US.yml 0 → 100644
View
config/locales/devise/devise.en_GB.yml 100644 → 0
View
config/locales/devise/devise.en_US.yml 100644 → 0
View
config/locales/devise/devise.fr-FR.yml 0 → 100644
View
config/locales/devise/devise.fr_FR.yml 100644 → 0
View
config/locales/devise/devise.pt-BR.yml 0 → 100644
View
config/locales/devise/devise.pt_BR.yml 100644 → 0
View
config/locales/devise/devise_invitable.en-GB.yml 0 → 100644
View
config/locales/devise/devise_invitable.en-US.yml 0 → 100644
View
config/locales/devise/devise_invitable.en_GB.yml 100644 → 0
View
config/locales/devise/devise_invitable.en_US.yml 100644 → 0
View
config/locales/devise/devise_invitable.fr-FR.yml 0 → 100644
View
config/locales/devise/devise_invitable.fr_FR.yml 100644 → 0
View
config/locales/en-GB.yml 0 → 100644
View
config/locales/en-US.yml 0 → 100644
View
config/locales/en_GB.yml 100644 → 0
View
config/locales/en_US.yml 100644 → 0
View
config/locales/faker/faker.en-GB.yml 0 → 100644
View
config/locales/faker/faker.en_GB.yml 100644 → 0
View
config/locales/fr-CA.yml 0 → 100644
View
config/locales/fr-FR.yml 0 → 100644
View
config/locales/fr.yml
View
config/locales/fr_CA.yml 100644 → 0
View
config/locales/fr_FR.yml 100644 → 0
View
config/locales/pt-BR.yml 0 → 100644
View
config/locales/pt_BR.yml 100644 → 0
View
config/locales/sv-FI.yml 0 → 100644
View
config/locales/sv_FI.yml 100644 → 0
View
db/seeds.rb
View
lib/locale_formatter.rb 0 → 100644
View
lib/locale_set.rb 0 → 100644
View
lib/tasks/upgrade.rake
View
spec/features/locales_spec.rb
View
spec/lib/locale_formatter_spec.rb 0 → 100644
View
spec/lib/locale_set_spec.rb 0 → 100644
View
spec/models/language_spec.rb
View
spec/support/faker.rb
View
spec/support/locales.rb