mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Support frontend custom l10n text
This commit is contained in:
parent
eedb7e8449
commit
9def3808e3
@ -1,7 +1,13 @@
|
||||
@if (file_exists(public_path('langs/'.config('app.locale').'.js')))
|
||||
<script src="{{ url('public/langs/'.config('app.locale').'.js') }}"></script>
|
||||
@if (file_exists(public_path($path = 'langs/'.config('app.locale').'.js')))
|
||||
<script src="{{ url('public/'.$path) }}"></script>
|
||||
@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.locale').'/locale.js')))
|
||||
<script src="{{ url('resources/'.$path) }}"></script>
|
||||
@endif
|
||||
@else
|
||||
<script src="{{ url('public/langs/'.config('app.fallback_locale').'.js') }}"></script>
|
||||
@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.fallback_locale').'/locale.js')))
|
||||
<script src="{{ url('resources/'.$path) }}"></script>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<script src="{{ webpack_assets('index.js') }}"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user