Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5457

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 8.1.0, 8.0.3
    • Affects Version/s: None
    • Component/s: Docs
    • 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@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: