https://github.com/magento/magento2/issues/17193
Magento 2.3.0. This fix cant resolve the issue for me.
I fixed it via adding translation in template and variables:
vendor/magento/module-ui/view/base/web/templates/modal/modal-popup.html
<footer class="modal-footer">
<% _.each(data.buttons, function(button) { %>
<button
class="<%- button.class %>"
type="button"
data-role="action"><span><%= jQuery.mage.__(button.text) %></span></button>
<% }); %>
</footer>
and
vendor/magento/module-ui/view/base/web/js/modal/confirm.js
], function ($, _, $t) {
'use strict';
var cancelBtn = $t('Cancel');
var okBtn = $t('Ok');
and then
buttons: [{
text: cancelBtn,
class: 'action-secondary action-dismiss',
/**
* Click handler.
*/
click: function (event) {
this.closeModal(event);
}
}, {
text: okBtn,
class: 'action-primary action-accept',