Skip to content

Commit 5ab5da5

Browse files
authored
Merge pull request #11733 from nanaya/locale-switch
Fix switching locale doesn't set js locale correctly
2 parents 3358721 + ba64243 commit 5ab5da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/layout/metadata.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
<script src="{{ unmix('js/runtime.js') }}" data-turbo-eval="false"></script>
9797
<script src="{{ unmix('js/vendor.js') }}" data-turbo-eval="false"></script>
9898

99-
<script src="{{ unmix("js/locales/{$currentLocale}.js") }}" data-turbo-eval="false"></script>
99+
<script src="{{ unmix("js/locales/{$currentLocale}.js") }}" data-turbo-track="reload"></script>
100100
@if ($fallbackLocale !== $currentLocale)
101-
<script src="{{ unmix("js/locales/{$fallbackLocale}.js") }}" data-turbo-eval="false"></script>
101+
<script src="{{ unmix("js/locales/{$fallbackLocale}.js") }}" data-turbo-track="reload"></script>
102102
@endif
103103

104104
<script src="{{ unmix('js/commons.js') }}" data-turbo-eval="false"></script>

0 commit comments

Comments
 (0)