discourse/spec/system/page_objects/pages
Natalie Tay 235c673fe8
FEATURE: Localize language names (#33790)
This PR adds localized language names to settings. The language names
are localized in the frontend, not the backend, due to setting
initialization complexity.

This change affects these areas:
- `SiteSetting.available_locales` 
- this "setting" is a lookup table to get language names. use
`languageNameLookup` service to get the name for a locale
- it returns an object that looks like the following, then gets
re-hydrated with client localized values when initializing the
`siteSettingService` in the frontend.
  ```
  [
{"native_name":"اللغة العربية","value":"ar","name":"languages.ar.name"},
    ...
  ]  
  ```

- `SiteSetting.default_locale` 
- this is a single-value `enum` setting that has always been hardcoded.
This caused quite an issue as it is not initialized the same way as
other site settings in the yml file. It has always relied on reading
directly from a `names.yml` file to load native language names, thus
bypassing the need for I18n to be initialized from the backend. A new
locale_enum type has been introduced for this setting, and any future
settings.
  
- `SiteSetting.content_localization_supported_locales` - this is a
`enum_list` setting,
  - enum_list is introduced, leveraging both `list` and `enum`
  
- theme translations

- site texts

- Wizard's default_locale choices 
- it was set up from the backend using `LocaleSiteSetting.value`. This
proved problematic, as a Japanese user would be getting the locales in
English because the values are initialized using English even without
memoization
- therefore we're now initializing the choices in the frontend using
`available_locales` as defined above
  
- content localization meta data
- post language in the composer, localization composer, post history
modal, post language tooltip, language switcher



/t/151409
2025-07-29 11:48:45 +08:00
..
about.rb DEV: Port the about page extra groups functionality into core (#32659) 2025-05-14 09:44:25 +08:00
activate_account.rb UX: Add progress bar to the registration flow (#27694) 2024-08-28 08:43:39 -03:00
admin_about_config_area.rb DEV: Port the about page extra groups functionality into core (#32659) 2025-05-14 09:44:25 +08:00
admin_api_keys.rb DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
admin_backups.rb FIX: hide unnecessary tabs and buttons when backups disabled (#32396) 2025-04-23 10:22:31 +08:00
admin_badges.rb DEV: replace selenium driver with playwright (#31977) 2025-05-06 10:44:14 +02:00
admin_badges_groupings.rb DEV: Move admin page objects to /pages directory (#30812) 2025-01-16 11:18:36 +08:00
admin_base.rb FEATURE: Theme-owned color palettes (#32795) 2025-06-04 07:47:58 +03:00
admin_color_palette_config_area.rb DEV: updates playwright to 1.54 (#33715) 2025-07-24 10:07:31 +02:00
admin_color_palettes_config_area.rb FEATURE: Add color palette list selection to new UI (#32379) 2025-05-05 05:12:50 +03:00
admin_customize_components_config_area.rb DEV: replace selenium driver with playwright (#31977) 2025-05-06 10:44:14 +02:00
admin_customize_themes.rb FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
admin_customize_themes_config_area.rb DEV: change experimental_system_themes setting to list (#33230) 2025-06-17 15:41:19 +08:00
admin_dashboard.rb FEATURE: Add ability to dismiss admin notices (#28916) 2024-09-17 14:43:34 +08:00
admin_embedding.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_embedding_host_form.rb DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
admin_embedding_posts_and_topics.rb UX: admins embedding page follows admin ux guideline (#30122) 2025-01-06 13:01:08 +11:00
admin_emojis.rb DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
admin_flag_form.rb DEV: Simplify "Admin Flags Page" system test to reduce runtime duration (#32431) 2025-04-24 15:47:22 +08:00
admin_flags.rb DEV: Simplify "Admin Flags Page" system test to reduce runtime duration (#32431) 2025-04-24 15:47:22 +08:00
admin_fonts.rb UX: split admin logo and fonts to separate pages (#32700) 2025-05-14 14:02:34 +08:00
admin_logo.rb UX: split admin logo and fonts to separate pages (#32700) 2025-05-14 14:02:34 +08:00
admin_new_features.rb FEATURE: Allow showing only experiments on "What's new?" (#31347) 2025-02-14 13:30:37 +10:00
admin_objects_theme_setting_editor.rb FEATURE: porting type object to site settings (#32706) 2025-05-13 14:30:24 -03:00
admin_permalink_form.rb UX: redesign admin permalinks page (#29634) 2024-11-14 10:03:58 +11:00
admin_permalinks.rb UX: Update some delete confirmation dialogs (#33018) 2025-06-02 09:14:58 -04:00
admin_plugins_list.rb DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146) 2024-12-18 08:13:39 +10:00
admin_site_settings.rb FEATURE: Localize language names (#33790) 2025-07-29 11:48:45 +08:00
admin_site_texts.rb DEV: fix flaky in admin site texts (#32783) 2025-05-18 19:12:43 +02:00
admin_staff_action_logs.rb FIX: filterable staff logs for flags (#29695) 2024-11-12 11:23:18 +11:00
admin_theme_site_settings.rb FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
admin_user.rb FIX: JS error when silencing and unsilencing the user (#33851) 2025-07-25 14:33:07 +08:00
admin_user_badges.rb DEV: Move admin page objects to /pages directory (#30812) 2025-01-16 11:18:36 +08:00
admin_user_fields.rb DEV: Move admin config pages out of /customize/ sub-route (#30511) 2025-01-02 09:13:11 +10:00
admin_users.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_watched_words.rb UX: limit "outputs HTML" watched word option to replacements (#28063) 2024-07-25 16:25:56 -03:00
admin_web_hook_events.rb FEATURE: Add Filter for Webhook Events by Status (#27332) 2024-06-07 10:26:00 -05:00
admin_webhooks.rb DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
base.rb
category.rb FIX: UppyUploader issues when authorized_extensions setting is blank but authorized_extensions_for_staff is not (#33423) 2025-07-01 18:39:47 -05:00
csv_export_pm.rb DEV: make sure we don't load all data into memory when exporting chat messages (#22276) 2023-07-12 18:52:18 +04:00
discovery.rb DEV: Add system specs for dismiss new on tag routes (#23936) 2023-10-16 10:51:59 +01:00
form_template.rb FIX: Customize form template view modal footer buttons (#25804) 2024-02-21 22:20:56 -08:00
group.rb FIX: Updating a group without e-mail domains (#31896) 2025-03-19 10:38:41 +08:00
group_activity_posts.rb DEV: Reusable post-list component (#30312) 2024-12-19 09:20:25 -08:00
group_form.rb FIX: Amend broken group automatic member dialog (#31854) 2025-03-18 19:37:37 +08:00
group_index.rb FIX: Amend broken group automatic member dialog (#31854) 2025-03-18 19:37:37 +08:00
header.rb UX: Fix various search shortcut UX issues (#31903) 2025-03-21 09:20:58 +10:00
invite_form.rb DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00
login.rb Allow passing a redirect path to a param on the /login route (#32711) 2025-05-15 08:48:06 -05:00
posts_page.rb UX: Improvements to posts route (#30968) 2025-01-23 19:04:43 -08:00
review.rb DEV: Fix topic link component for reviewabled flagged post in new UI (#33518) 2025-07-09 09:11:25 +08:00
search.rb FIX: add missing last read sort order to full page search (#33376) 2025-06-27 14:30:59 +10:00
signup.rb FIX: Unblock social signup when name is required and `auth overrides… (#32923) 2025-05-27 08:26:38 -04:00
tag.rb UX: Fix tag revert rename 404 error (#31049) 2025-01-30 10:06:55 +10:00
topic.rb DEV: Speed up "having working core features" shared example by ~30% (#32666) 2025-05-10 06:56:12 +08:00
user.rb FEATURE: Make it easier for staff to see if a profile is silenced (#33537) 2025-07-14 12:44:31 +08:00
user_activity_bookmarks.rb DEV: replace selenium driver with playwright (#31977) 2025-05-06 10:44:14 +02:00
user_invited_expired.rb FIX: Show bulk removal of expired invites (#33716) 2025-07-21 17:13:06 +08:00
user_invited_pending.rb UX: Improve invite list (#33253) 2025-07-03 09:28:02 +08:00
user_notifications.rb DEV: Added the ability to use users' names in group mention notifications and mentions shown in emails (#33055) 2025-06-03 15:49:55 -05:00
user_preferences.rb DEV: Fix flaky "Changing email" system tests (#25805) 2024-02-22 10:46:37 +08:00
user_preferences_account.rb DEV: upgrade avatar-selector modal to glimmer component (#24192) 2023-11-07 21:02:19 +08:00
user_preferences_interface.rb FIX: Set the correct state of the dark mode checkbox user preference (#31214) 2025-02-06 20:31:37 +03:00
user_preferences_navigation_menu.rb FEATURE: Split navigation preference for count and behavior of sidebar links (#22203) 2023-06-22 19:04:13 +03:00
user_preferences_profile.rb UX: move "hide profile" checkbox to profile tab (#31095) 2025-01-31 17:04:20 +01:00
user_preferences_security.rb FIX: Reset password link broken for non-staff user in confirm session dialog (#32765) 2025-05-16 15:09:03 +08:00
user_private_messages.rb UX: show My messages count in sidebar (#33539) 2025-07-23 02:48:00 +08:00
user_reset_password.rb FIX: User can't reset password with backup codes when only security key is enabled (#27368) 2024-06-06 14:30:42 +08:00
wizard.rb DEV: Remove branding and styling steps from wizard (#32797) 2025-05-21 09:46:49 +08:00