-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add property 'locale' to Environment. #840
Conversation
The locale property is used to state the language of the environment.
@@ -137,6 +137,16 @@ | |||
"title": "Internet service provider", | |||
"type": "string", | |||
"description": "The name of the user's internet service provider." | |||
}, | |||
"xdm:locale": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this since XDM is valid JSON-LD, you should be using the standard @language
value.
@@ -240,6 +242,33 @@ The numerical label assigned to a device participating in a computer network tha | |||
|
|||
|
|||
|
|||
## xdm:locale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments as to why this is unnecessary
@@ -143,6 +143,16 @@ | |||
"title": "Internet service provider", | |||
"type": "string", | |||
"description": "The name of the user's internet service provider." | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments about why you don't need this.
Representation of locale codes is already provided by the Dublin Core term 'language' so it should be used here instead of creating a new XDM property.
@lrosenthol Thanks for your feedback. I've updated this PR to use |
Adding property 'locale' to the Environment schema to state the language of the environment at the time of the event. The locale code should follow RFC BCP 47
Change requested by Mobile SDK as 'locale' is an environment metric sent to Analytics in application lifecycle events.