noesya/osuny

View on GitHub
app/views/application/_summernote_localization.html.erb

Summary

Maintainability
Test Coverage
<% unless current_interface_language.summernote_locale.blank? %>
  <script id="summernote-locale" data-locale="<%= current_interface_language.summernote_locale %>" src="https://cdn.jsdelivr.net/npm/summernote@<%= SummernoteRails::Rails::VERSION.split('.').take(3).join('.') %>/dist/lang/summernote-<%= current_language.summernote_locale %>.js"></script>
<% end %>