<commit_before><% stylesheet 'backend/tagit/tagit-autocomplete' %>
<% stylesheet 'backend/tagit/tagit' %>
<% javascript 'backend/tagit.min' %>
<% javascript 'backend/plugins/tagbox' %>
<% javascript 'backend/tags' %>

<% locale = local_assigns.has_key?(:translation_locale) ? local_assigns[:translation_locale] : nil %>
<% actual_model = model.decorated? ? model.object : model %>

<fieldset class="radius">
  <legend><%= t 'b.tags' %></legend>

  <%= text_field_tag :tags, model.tags_string(locale), data: { tagbox: true, items_path: backend_tags_path, locale: locale, type: actual_model.class.name, id: model.id, base_path: backend_tags_path } %>
</fieldset>
<commit_msg>Bugfix: make sure the correct locale is provided.<commit_after><% stylesheet 'backend/tagit/tagit-autocomplete' %>
<% stylesheet 'backend/tagit/tagit' %>
<% javascript 'backend/tagit.min' %>
<% javascript 'backend/plugins/tagbox' %>
<% javascript 'backend/tags' %>

<% locale = local_assigns.has_key?(:locale) ? local_assigns[:locale] : params[:translation_locale] %>
<% actual_model = model.decorated? ? model.object : model %>

<fieldset class="radius">
  <legend><%= t 'b.tags' %></legend>

  <%= text_field_tag :tags, model.tags_string(locale), data: { tagbox: true, items_path: backend_tags_path, locale: locale, type: actual_model.class.name, id: model.id, base_path: backend_tags_path } %>
</fieldset>

{'fraction_non_alphanumeric': 0.17293777134587554, 'fraction_numerical': 0.0, 'mean_word_length': 6.16580310880829, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2468204', 'n_tokens_mistral': 506, 'n_tokens_neox': 452, 'n_words': 91}