Upgrade the i18n configuration file (v3 to v4)
mainThe structure of the config/i18n.yml file has changed in v4. The only and except keys from v3 are replaced by a single patterns key. In v4, exclusions are handled using the ! prefix within the patterns list.
Example Migration:
v3 (Old):
translations:
- file: "app/assets/javascripts/other.js"
only: ["*.activerecord", "*.admin.*.title"]
- file: "app/assets/javascripts/everything_else.js"
except:
- "*.activerecord"v4 (New):
translations:
- file: "app/assets/javascripts/other.js"
patterns:
- "*.activerecord"
- "*.admin.*.title"
- file: "app/assets/javascripts/everything_else.js"
patterns:
- "*"
- "!*.activerecord"translations:
- file: "app/assets/javascripts/date_formats.js"
patterns:
- "*.date.formats"
- file: "app/assets/javascripts/other.js"
patterns:
- "*.activerecord"
- "*.admin.*.title"
- file: "app/assets/javascripts/everything_else.js"
patterns:
- "*"
- "!*.activerecord"
- "!*.admin.*.title"
- "!*.date.formats"