From e8cc035c2297c4777485b5fe918826a2b6b6a801 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 15 Jul 2015 21:47:03 +0200 Subject: [PATCH] Sync also locales on translation sync. --- app/controllers/translations_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/translations_controller.rb b/app/controllers/translations_controller.rb index 854e95aaa..5c98afbfc 100644 --- a/app/controllers/translations_controller.rb +++ b/app/controllers/translations_controller.rb @@ -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