Sync also locales on translation sync.

This commit is contained in:
Martin Edenhofer 2015-07-15 21:47:03 +02:00
parent a09fdbd142
commit e8cc035c22

View file

@ -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