Use users’ default locale for Search locale selection

Open Beginner friendly
#4,442 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
django, javascript

Research direction

Start at the Search page and the top-navbar navigation from a locale page such as /uk/, then trace how the search locale is selected. Done means the locale from the page you started on is preselected when Search opens, rather than en-GB; verify the behavior using the reproduction steps.

Written by the indexing model from the issue text.

Description

hours P3

Steps to reproduce:

  1. Visit any locale page, e.g., https://pontoon.mozilla.org/uk/
  2. Click Search in the top navbar.

Expected results:
The page locale (in our case uk) is preselected on the Search page, since you are most likely going to search in that locale.

Actual results:
The search locale stays default (en-GB), and you need to select the target locale manually.

Dominant language
Python
Stars
1.7k
Forks
611
Avg merge
1d 11h
Merged PRs (30d)
42

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/pontoon

All issues in mozilla/pontoon

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.