How to configure I18n? #45
Unanswered
dimas-cyriaco
asked this question in
Q&A
Replies: 1 comment
-
|
I did manage to do it this way: def row(component)
translation = t("activerecord.attributes.#{component.field.parent.object.class.name.underscore}.#{component.field.key}")
div do
render component.field.label { translation }
render component
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The default Rails form builder calls I18n helpers to translate model name and attribute names by default.
For example, for the submit button text of an update form, it tries
I18n.translate('helpers.submit.update')(among others).Can superform be configured to do the same?
Beta Was this translation helpful? Give feedback.
All reactions