diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 16:33:45 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 16:33:45 +0200 |
| commit | 8d4aa4da56e2ddb5f53ba142c2b6a5ad49e791d0 (patch) | |
| tree | cbade5db5cc06f5c533450d8b0d8ebd95c731960 /script | |
| parent | ea8ee1d35948c6adc4a377c9eb77d99b2d856932 (diff) | |
Set config.i18n.available_locales explicitly
Rails-i18n's bundled locale data means an unset available_locales
defaults to every locale it ships pluralization/date rules for --
several hundred, not the two this app actually supports. Harmless
everywhere the outer route scope's own /de|en/ regex already
narrowed whatever reached I18n.available_locales.include?(...), but
the first code to read the list directly (Page.non_default_locales)
took it at face value. Also closes a related, independently-silent
gap in Page#rewrite_links_in_body, which used the same unconstrained
list to decide whether a link was already locale-prefixed.
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions
