Sync also locales on translation sync.
This commit is contained in:
parent
a09fdbd142
commit
e8cc035c22
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class TranslationsController < ApplicationController
|
|||
# POST /translations/sync
|
||||
def sync
|
||||
return if deny_if_not_role(Z_ROLENAME_ADMIN)
|
||||
Locale.load
|
||||
Translation.load
|
||||
render json: { message: 'ok' }, status: :ok
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue