Skip to content

Respect available_locales if already set in application. - #253

Draft
Schwad wants to merge 1 commit into
mainfrom
schwad/respect_available_locales
Draft

Schwad wants to merge 1 commit into
mainfrom
schwad/respect_available_locales

Conversation

@Schwad

@Schwad Schwad commented Jul 9, 2024

Copy link
Copy Markdown

Currently, this gem overrides if config.i18n.available_locales is manually set in an initializer or environment file. This PR respects if that config is already set.

Checklist

  • I have added a CHANGELOG entry for this change (or determined that it isn't needed)

Currently, this gem overrides if `config.i18n.available_locales` is
manually set in an initializer or environment file. This PR respects
if that config is already set.

@najibna najibna left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping available_locales= when the app already set it also skips expanded_locales_from_configuration. Apps that set [:en, :fr] would then lose the descendant locales Worldwide currently adds for fallbacks.

This branch has not been deployed

No deployments
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.

2 participants