Skip to content

Commit

Permalink
Merge pull request #11733 from nanaya/locale-switch
Browse files Browse the repository at this point in the history
Fix switching locale doesn't set js locale correctly
  • Loading branch information
notbakaneko authored Dec 9, 2024
2 parents 3358721 + ba64243 commit 5ab5da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layout/metadata.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
<script src="{{ unmix('js/runtime.js') }}" data-turbo-eval="false"></script>
<script src="{{ unmix('js/vendor.js') }}" data-turbo-eval="false"></script>

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

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

0 comments on commit 5ab5da5

Please sign in to comment.