Skip to content
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

Merged
merged 5 commits into from
Apr 6, 2020

Conversation

kevinlind
Copy link
Contributor

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.

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": {
Copy link
Collaborator

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.

docs/reference/context/environment.schema.md Show resolved Hide resolved
@@ -240,6 +242,33 @@ The numerical label assigned to a device participating in a computer network tha



## xdm:locale
Copy link
Collaborator

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."
},
Copy link
Collaborator

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.
@kevinlind
Copy link
Contributor Author

@lrosenthol Thanks for your feedback. I've updated this PR to use dc:language instead of creating a new XDM property.

@prabhum2 prabhum2 merged commit 83a714d into adobe:master Apr 6, 2020
@kevinlind kevinlind deleted the environment-locale-property branch April 7, 2020 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants