In Rails, how to translate buttons in javascript popup confirm box -
When contains the data: {confirm: "Are you sure?" }
For an Auxiliary, how do we translate "cancel" and "OK" two buttons in the popup?
Is the Rail I18n implemented in any way?
By default ( verify data attribute and calling
Window.confirm ()
) uses the Rail-Uses browser's basic confirmation dialog, so you can not actually translate them, they will use the browser's translation.
If you use some options, the solution (which actually changes the data-confirmation
attribute with something else) depends on the particular solution you choose. Does (for example)
TL; DR: You can not
Comments
Post a Comment