Background
The new Wishlist aims to increase participation among users across the globe and our projects. We can measure this by 1) diversity of submissions and 2) diversity of votes/edits by language/IP addresses.
To create a new wish, users will enter a valid form submission. It requires project, type (bug/new idea), title, description, and users impacted, as well as optional fields for Phabricator tickets.
Goal: localize the form so that any user can view the form in their native language (i.e. their current interface language as set in their preferences).
User story
Given that I am logged in and have set my default language on wiki to non-english, or I am visiting from an IP address where the default language is not english, when I visit the wishlist intake form, then all form fields and labels should be visible in my native language.
Requirements
- The user should be able to view all form fields, labels, and helper text in their native language
- The user should view all form validation or error states in their native language
- All buttons should be in the user's native language
QA
- QA can be done on patchdemo.
- The form's interface language should follow the currently selected user language (in preferences, or via ?uselang=xx in the URL).
- Currently there is only en available, but qqx should also work to display the message names. Don't worry about testing for languages other than those two.
Feature: Localization of Wish Form
BDD
Feature: Localization of Wish Form Scenario: Ensure all form elements are localized correctly Given the user has their language settings set to a non-default language When the user navigates to the Wish form Then all form elements should display text in the user's language Scenario: Ensure error messages are localized correctly Given the user has their language settings set to a non-default language When the user submits the Wish form with invalid inputs Then the error messages should be displayed in the user's language
Test Steps
Test Case 1: Ensure Form Elements are Localized Correctly
- Navigate to the Wish form. https://patchdemo.wmflabs.org/wikis/daa3db7f2e/wiki/Community_Requests/Intake
- Set the language by adding ?uselang=en after the URL.
- Verify that all form elements display text in the selected language.
- AC1: Confirm that all labels, placeholders, and instructions are correctly localized.
Test Case 2: Ensure Form Elements are Localized Correctly
- Navigate to the Wish form. https://patchdemo.wmflabs.org/wikis/daa3db7f2e/wiki/Community_Requests/Intake
- Set the language by adding ?uselang=qqx after the URL.
- Verify that all form elements display text in the selected language.
- AC2: Confirm that all labels, placeholders, and instructions are correctly localized.
Task Description:
QA Results - PatchDemo
AC | Status | Details |
---|---|---|
1 | ✅ | T361512#9819479 |
2 | ✅ | T361512#9819479 |