Refactor: Use native error i18n lookup #1076
Reference in New Issue
Block a user
Delete Branch "use-native-error-i18n-lookup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request refactors the existing error handling system to implement native internationalization (i18n) for error messages.
Rails guides documents the lookup order for a validation of name is not empty on the user model:
I had to add magic comment hints for i18n-tasks to recognized that this translations are used.
I have not perfomed changes in lib/money.rb because i18n-tasks would not peek into that file.
Really nice work here, thanks for going through and updating this!