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

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -