Commit 2bcb193

mo <mo.khan@gmail.com>
2019-01-10 04:08:18
use i18n for error messages
1 parent b28cad4
Changed files (1)
lib
scim
lib/scim/kit/v2/attribute.rb
@@ -29,13 +29,13 @@ module Scim
         def presence_of_value
           return unless type.required && _value.blank?
 
-          errors.add(type.name, "can't be blank")
+          errors.add(type.name, I18n.t('errors.messages.blank'))
         end
 
         def inclusion_of_value
           return if type.canonical_values.include?(_value)
 
-          errors.add(type.name, 'is not included in the list')
+          errors.add(type.name, I18n.t('errors.messages.inclusion'))
         end
       end
     end