From ccf6598ddc51288d99b89605e20f62d218801023 Mon Sep 17 00:00:00 2001 From: printempw Date: Sat, 28 Jul 2018 21:09:28 +0800 Subject: [PATCH] Allow overriding front-end translations --- resources/views/common/dependencies/script.tpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/views/common/dependencies/script.tpl b/resources/views/common/dependencies/script.tpl index 8f5d1ed0..b03f6e21 100644 --- a/resources/views/common/dependencies/script.tpl +++ b/resources/views/common/dependencies/script.tpl @@ -1,9 +1,13 @@ -@if (file_exists(resource_path('lang/'.config('app.locale').'/locale.js'))) - +@if (file_exists(resource_path($path = 'lang/'.config('app.locale').'/locale.js'))) + @else - + +@endif + +@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.locale').'/locale.js'))) + @endif @if (isset($module))