Validation error messages not fully translated in response (I18n)
ruslankhaertdinov opened this issue · 3 comments
ruslankhaertdinov commented
I have object with validation error. It correctly translated with I18n:
angle.errors.to_a
=> ["Камера не имеет сохранённых координат"]
Translated as Camera doesn't have coordindates
in :en
locale.
But in request I got partly translated response:
{"errors"=>[{"title"=>"Camera не имеет сохранённых координат", "id"=>"camera", "code"=>"100", "source"=>{"pointer"=>"/data/relationships/camera"}, "status"=>"422"}]}
Where validation message is not fully translated: Camera
word not translated, but rest of message translated.
ruslankhaertdinov commented
Sure
tiagopog commented
I just deleted and re-commented at the PR, I think it's more appropriate there 👍