Use full translation key for messages
This commit is contained in:
parent
d609435f7c
commit
0ab822c33a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue