== User story [Multilingual reader]
When searching articles...
...I want be able to quickly search across languages....
...so that I can easily find articles in all Wikipedia languages I read.
== Mocks of proposed designs
=== Interaction flow
====Invision prototype: https://wikimedia.invisionapp.com/project/13853715
// Redline mocks on [[ https://zpl.io/GaRQKKV | Zeplin board ]] will be tagged with `Multilingual` and `Search` //
=== Notes on the design
- The language filter bar is only shown if more than 1 app language is set
- Order of the app languages determines the order they are shown in the search filter by language tabs
- The search filter will only show the first 3 app languages set, the user can select "MORE" to bring up the app language settings screen. If the user selects another language from the list here, that language is 'bumped up' as the 3rd app language, and user is returned to the search filter on the newly selected 3rd language filter tab.
- the language tab bar is scrollable in the case of language name length extending beyond the available screen width, but the MORE button is sticky to the RHS of the filter tab bar (language tabs overflow and are scrollable under the MORE button)
== QA required {icon check color=green}
=== Scenario A: User has just 1 language set
**Pre-conditions:** User's system language is English only, and their Wikipedia app is also set to English.
# Open search in the Wikipedia app.
# Start typing a search term, for example "Egg tart" and note the results appearing from en.wiki
# Tap on "EN" search bar to open the app language settings screen
# Select "Add a language" and add Chinese Traditional as the second language.
# Tap to select "Chinese Traditional". It is **expected** that upon selection, the user is returned to the search screen now with an additional language filter bar, with Chinese Traditional as the 2nd language filter tab selected, and results for "Egg tart" shown in zh-hant.wiki
=== Scenario B: User has multiple app languages set
**Pre-conditions:** User's system language is English, and their Wikipedia app has the following languages selected (in order) as 1/English, 2/Chinese (Traditional), 3/French, and 4/Danish.
# Open search in the Wikipedia app.
# Start typing a search term, for example "Egg tart" and note the results appearing from en.wiki
# Tap on the Chinese Traditional filter tab to see results for "Bruce Lee" in zh-hant.wiki.
# Tap on "MORE" in the language filter tab to open the app language settings screen
# Select the 4th language "Danish". It is **expected** that upon selection, the user is returned to the search now with Danish as the 3rd language filter tab, showing results for "Egg tart" in da.wiki