Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memoization logic in
Localized
mixin (#465)
Right now, the memoization logic will return `nil` if `@localizations` was set to `nil`. This means we don't have a straightforward way to reset this class-level variable. It will be important in subsequent PRs to be able to do so when running tests. If the localizations are empty, `@localizations` will anyway be set to `{}`, not `nil`. This PR ensures that the localizations are loaded instead of early returning when `@localizations == nil`.
- Loading branch information