Commit ffccbc7
Add i18n support for Field::HasMany
If you have ActiveRecord i18n translation of the model you don't need to do
anything extra, if not, make an ActiveRecord i18n translation of the model.
e.g.:
The recipe has many recipe items.
```ruby
ATTRIBUTE_TYPES = {
recipe_items: Field::HasMany,
id: Field::Number,
name: Field::String,
package_spec: Field::String,
remark: Field::String,
created_at: Field::DateTime,
updated_at: Field::DateTime,
}.freeze
```
```yaml
zh-TW:
activerecord:
models:
recipe: 配方表
recipe_item: 材料
```1 parent b49efe4 commit ffccbc7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
0 commit comments