You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have your model defined with a @localizedAttr field and directly set the
field on store.createRecord the setter for the field will not be called and
instead of the dictionary with the locale key, the value directly will be assigned
to the field.
Creating model records
If you have your model defined with a
@localizedAttr
field and directly set thefield on
store.createRecord
the setter for the field will not be called andinstead of the dictionary with the locale key, the value directly will be assigned
to the field.
The serialized model then looks like this:
instead of
Solution:
Create your record first and then assign the localized field:
The text was updated successfully, but these errors were encountered: