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