Skip to content

Commit

Permalink
Update index.html.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kyyberi committed Nov 16, 2023
1 parent 84719da commit 262b19f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ Here's the list of attributes which can occur at the document root level. In the
| <div style="width:150px">Element name</div> | Type | Options | Description |
|---|---|---|---|
| **$schema** | string | valid URL | **REQUIRED** Defines the URL of Schema. Used often for validation purposes. |
| **product** | object | root element | **REQUIRED** Root element to tie all together. |
| **en** | element | [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) defined 2-letter codes | **REQUIRED** - **NOTE! This is a dynamic element!** This element binds together other product attributes and expresses the langugage used. In the example this is "en", which indicates that product details are in English. If you would like to use French details, then name the element "fr". The naming of this element follows options (language codes) listed in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard. <br/><br/> You can have product details in multiple languages simply by adding similar sets like the example - just change the binding element name to matching language code. <br/><br/> The pattern to implement multilanguage support for data products was adopted from de facto UI translation practices. The attributes inside this element are commonly rendered in the UI for the consumer and providing a simple way to implement that was the driving reasoning. See for example [JSON - Multi Language](https://simplelocalize.io/docs/file-formats/multi-language-json/) |
| **name** | string | max length 256 chars | **REQUIRED** The name of the product. |
| **productID** | string | max length 256 chars | **REQUIRED** Product identifier. |
Expand Down

0 comments on commit 262b19f

Please sign in to comment.