Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop re-appending spree locale paths in dev mode
Spree appends I18n locale paths before the decorators are loaded. It is necessary to ensure that the locale paths are only appended once to avoid overriding customized locales. Further more the spree locale paths are appended to the beginning of I18n.load_path. This will ensure that locales that are loaded before spree will not be overridden. This issue was occurring in development mode when locales where changed and the spree local paths where re-appended to I18n.load_path, thereby prioritizing the spree locales over the overridden locals. Only rails environments with "config.cache_classes = false" where affected.
- Loading branch information