You can clone with
HTTPS or Subversion.
Using Formtastic 2.2.0.
I know the readme says it should be possible to configure i18n for buttons using:
create: 'My text'
However this simply doesn't seem to work. Neither does nesting the create key under a model name.
If I use a named key, eg create_foo and then reference it in my view f.action :submit, label: :create_foo it works, but no other method seems to.
f.action :submit, label: :create_foo
Did you enable enhanced I18n lookups in the initializer?
Formtastic::FormBuilder.i18n_lookups_by_default = true
There's some test coverage around this in spec/actions/generic_action_spec.rb
This namespace seems right:
Inside there, these are the keys we're referencing:
So I think the full list of keys is
I would view the "submit" key as a fallback, used usually when the form's object doesn't smell like an ActiveModel and we can't figure out if it should be a create or update. Try setting an update and submit key and let me know how you go.
I'm leaving this open because we obviously need some documentation around this.
Added documentation in 0a81d19, closing.