Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dark themes to the backend and a theme switching support #4999

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Don't error out if select2 asks for an unsupported locale
  • Loading branch information
elia committed Nov 14, 2023
commit 2d47f11fa2510ac8716eb6614f7d3f227718dc19
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<script data-hook='admin-custom-translations'>
</script>

<% if I18n.locale != :en %>
<%= javascript_include_tag "solidus_admin/select2_locales/select2_locale_#{I18n.locale}",
data: {turbolinks_track: 'reload'} %>
<% if I18n.locale != :en && I18n.locale %>
<% select2_locale_path = "solidus_admin/select2_locales/select2_locale_#{I18n.locale}" %>
<%= javascript_include_tag select2_locale_path, data: {turbolinks_track: 'reload'} if Rails.application.assets.find_asset(select2_locale_path) %>
<% end %>