Document + example of non-String field types in localized fields

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Trivial - P5
    • 8.1.0, 8.0.3
    • Affects Version/s: None
    • Component/s: Docs
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The current example in https://www.mongodb.com/docs/mongoid/master/reference/fields/#localized-fields does not specify a field type, technically creating an Object (or untyped) field, but continues to treat the field as a string field, i.e. something like a message which is textual and can be translated to other languages.

      A localized field can be of any type, for example it can have a numeric value which is monetary and different across locales.

      The documentation should point out that localized fields can have any type specified.

            Assignee:
            Neil Shweky (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: