Implement local override for i18n parameters

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: