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

feat: respect icm language settings #661

Conversation

dhhyi
Copy link
Collaborator

@dhhyi dhhyi commented Apr 18, 2021

PR Type

[x] Feature
[x] Refactoring (no functional changes, no API changes)

What Is the Current Behavior?

The PWA ignores locale settings from the ICM, that are available in the configurations REST response.

What Is the New Behavior?

If retrieved, the PWA uses the ICM locale settings to set a default locale and filter available locales based on channel settings.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

To have access t the configurations call results in the configurations store, the server-config store has to be moved from general to core.

@dhhyi dhhyi added enhancement Enhancement to an existing feature refactoring Refactoring of current code labels Apr 18, 2021
@dhhyi dhhyi changed the title Feature/respect icm language settings feat: respect icm language settings Apr 18, 2021
@dhhyi dhhyi force-pushed the feature/respect-icm-language-settings branch from 74b628a to 6763a2e Compare April 18, 2021 16:09
@dhhyi dhhyi changed the base branch from develop to feature/translations-fallback-handling April 18, 2021 16:09
@dhhyi dhhyi added the wait Waiting for something (e.g. new ICM release) label Apr 18, 2021
@dhhyi
Copy link
Collaborator Author

dhhyi commented Apr 18, 2021

wait for integration of #659

@dhhyi dhhyi force-pushed the feature/respect-icm-language-settings branch from 6763a2e to 1b0f3fb Compare April 18, 2021 16:56
@dhhyi dhhyi marked this pull request as ready for review April 18, 2021 18:27
@dhhyi dhhyi force-pushed the feature/translations-fallback-handling branch from d3a8f27 to 933adfe Compare April 18, 2021 19:27
dhhyi added 2 commits April 18, 2021 21:27
- needed for access to locale setting of ICM in core configuration state
- relates to #227
@dhhyi dhhyi force-pushed the feature/respect-icm-language-settings branch from 1b0f3fb to aed33fd Compare April 18, 2021 19:28
@MaxKless MaxKless self-assigned this Apr 28, 2021
@MaxKless MaxKless self-requested a review April 28, 2021 11:44
@MaxKless
Copy link
Collaborator

MaxKless commented Jun 2, 2021

Hi Danilo, thanks for the PR! When you submitted this, we were in the middle of our own localization rework. You wrote some nice code, though and we used parts of it in #695 .
Thanks for your work but since this is fixed I'm closing the PR.

@MaxKless MaxKless closed this Jun 2, 2021
@dhhyi dhhyi deleted the feature/respect-icm-language-settings branch June 3, 2021 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature refactoring Refactoring of current code wait Waiting for something (e.g. new ICM release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants