Use I18n-JS rather than rails-i18n in .js.erb files

This commit is contained in:
Sebastian Serth
2023-12-22 00:49:07 +01:00
committed by Sebastian Serth
parent d6c4df1bac
commit 34aac83909
3 changed files with 11 additions and 11 deletions

View File

@ -94,7 +94,7 @@ CodeOceanEditorFlowr = {
var body = resultTile.find('.card-body');
body.html(result.body);
body.append('<a target="_blank" href="' + questionUrl + '" class="btn btn-primary">' +
'<%= I18n.t('exercises.implement.flowr.go_to_question') %></a>');
`${I18n.t('exercises.implement.flowr.go_to_question')}</a>`);
body.find('.btn').on('click', CodeOceanEditor.createEventHandler('editor_flowr_click_question', questionUrl));
flowrHintBody.append(resultTile);