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

Localize popups based on the user profile #88

Open
1 task done
hhkaos opened this issue Oct 17, 2023 · 0 comments
Open
1 task done

Localize popups based on the user profile #88

hhkaos opened this issue Oct 17, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@hhkaos
Copy link
Member

hhkaos commented Oct 17, 2023

Check existing issues

Execution profile

Popup

Is your feature request related to a problem? Please describe.

When I try to localize a web map/scene, I end up having multiple instances of the exact same web map/scene with the only difference of localized popups (text and unit measures: Fahrenheit vs Celsius, meters vs miles, ...). And this is challenging to maintain. We could use Arcade expressions to localize these popups.

Describe the solution you'd like

I would my app to be able to :

Untitled drawing (16)

Describe alternatives you've considered

  • Use Arcade expressions to query the default language of the logged-in user using GetUser().units and set everything accordingly
  • Replicate the same instance of a web map and customize each per language
  • Build a custom app writing custom code and use something like intl.setLocale() or use an external tool like i18next

Additional context

This was presented in a demo during DevSummit 2023. The web map can be found here

@hhkaos hhkaos added enhancement New feature or request help wanted Extra attention is needed labels Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant