Add internationalization (#114)

🇬🇧 and 🇮🇹
This commit is contained in:
Riccardo Graziosi
2022-06-05 11:40:43 +02:00
committed by GitHub
parent ba86e81aa0
commit 78049a820c
71 changed files with 802 additions and 266 deletions

View File

@@ -20,7 +20,7 @@ class FollowsController < ApplicationController
}, status: :created
else
render json: {
error: I18n.t('errors.follows.create', message: follow.errors.full_messages)
error: follow.errors.full_messages
}, status: :unprocessable_entity
end
end
@@ -37,7 +37,7 @@ class FollowsController < ApplicationController
}, status: :accepted
else
render json: {
error: I18n.t('errors.follow.destroy', message: follow.errors.full_messages)
error: follow.errors.full_messages
}, status: :unprocessable_entity
end
end