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]
|
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
|
||||||
|
|
Loading…
Reference in New Issue