carbon-design-system / carbon-for-ibm-dotcom

Carbon for IBM.com is based on the Carbon Design System for IBM
https://www.ibm.com/standards/carbon/
Apache License 2.0
264 stars 157 forks source link

Locale Selector: develop a service that determines the users locale based on ipcinfo or Geo-ip #515

Closed jeffchew closed 4 years ago

jeffchew commented 4 years ago

hahnrob created the following on Oct 07:

User Story

As a [user role below]: As a developer of the Digital Design System Locale Selector

I need to: develop a service that uses the stored ipcinfo or the stored geo-ip info plus browser language preference

so that I can: enable the Locale Selector in the footer to accurately navigate global users to the correct local web pages

Additional information

Acceptance criteria

Original issue: https://github.ibm.com/webstandards/digital-design/issues/1817

jeffchew commented 4 years ago

On Oct 10, Anna-Wen commented: @Jeff-Chew @james-dow @Kenny-Lam Would this service also handle verification of cc-lc? Maybe we would want to create another util that would do that and include it in this service here.

AFTER DISCUSSION: Will include the verification logic in this service, the geo-ip util will only be responsible for returning the cc

jeffchew commented 4 years ago

@annawen1 I created and cleaned up all of the JSON files, attached here. I tried uploading though and my username specifically doesn't have access, I didn't try the functional ID but I'm assuming it may be the same thing. Going to reach out to the webmaster team about it.

https://app.zenhub.com/files/193129061/315a5b69-5b05-4490-a50f-9f52e81e2328/download