Use full translation key for messages

This commit is contained in:
Karina Kwiatek 2022-01-16 18:42:41 +01:00 committed by Karina Kwiatek
parent d609435f7c
commit 0ab822c33a
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class Ajax::RelationshipController < AjaxController
type: params[:type]
)
@response[:success] = true
@response[:message] = t(".success")
@response[:message] = t('messages.friend.create.success')
rescue Errors::Base => e
@response[:message] = t(e.locale_tag)
ensure
@ -30,7 +30,7 @@ class Ajax::RelationshipController < AjaxController
type: params[:type]
)
@response[:success] = true
@response[:message] = t(".success")
@response[:message] = t('messages.friend.create.success')
rescue Errors::Base => e
@response[:message] = t(e.locale_tag)
ensure