fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

Hosted pages do not support more than one specialization of a language

Open mmanes opened this issue 2 years ago • 3 comments

Description

When adding localization messages to a theme, only one specialization of a language will be available on the rendered pages.

Affects versions

1.46.0

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a custom theme and edit it
  2. Select "Messages"
  3. Add localizations for "English (Great Britain)" and "English (United States)" in addition to the default
  4. Assign the new theme to a Tenant or Application
  5. Navigate to the Login URL for the Application
  6. Notice that the language drop-down only displays two "English" options. Inspecting the select element will show that it only contains "en" and "en_GB" options.

Expected behavior

All localized languages should be available in the hosted pages.

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Additional information

See: Theme::additionalLocales()

mmanes avatar Jun 28 '23 20:06 mmanes

I tried with en and en_CA (Canada) and fr (French) and it worked correctly.

But I can recreate if I use en_GB or en_AT for example.

So perhaps some issue with the suffix handling?

robotdan avatar Jul 10 '23 16:07 robotdan

@robotdan ,

I was able to reproduce this with zh_CH and zh_TW - only one Chinese option will be displayed in the form dropdown.

josephk96 avatar Dec 07 '23 07:12 josephk96

Related: #69

LucasPMorris avatar Jun 11 '24 19:06 LucasPMorris

Confirmed that this is still an issue on 1.59.0

mooreds avatar Aug 18 '25 17:08 mooreds