Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5438

Implement local override for i18n parameters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.1.0
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • Fully Compatible

      Similarly to https://jira.mongodb.org/browse/MONGOID-5261 for config options and https://jira.mongodb.org/browse/MONGOID-5262 for time zones, we should have a macro that performs local overrides for i18n-related parameters.

      As shown in https://github.com/mongodb/mongoid/pull/5402/files, there are several:

        config.before(:each) do
          I18n.locale = :en
          I18n.default_locale = :en
          I18n.fallbacks = []
          I18n.enforce_available_locales = false
        end
      

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: