Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate /locales/ page based on settings (fixes #6454) #11546

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

robhudson
Copy link
Member

One-line summary

Changing /locales/ from hard-coded to using our settings to generate it.

Issue / Bugzilla link

#6454

bedrock/settings/base.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Apr 26, 2022

Codecov Report

Merging #11546 (6e25ca9) into main (ecc8b37) will decrease coverage by 0.00%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##             main   #11546      +/-   ##
==========================================
- Coverage   77.08%   77.07%   -0.01%     
==========================================
  Files         144      144              
  Lines        7553     7559       +6     
==========================================
+ Hits         5822     5826       +4     
- Misses       1731     1733       +2     
Impacted Files Coverage Δ
bedrock/mozorg/urls.py 88.88% <ø> (ø)
bedrock/mozorg/views.py 78.99% <60.00%> (-0.84%) ⬇️
bedrock/settings/base.py 92.68% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecc8b37...6e25ca9. Read the comment docs.

@robhudson robhudson force-pushed the 6454-automate-locales-page branch from 31978a4 to e8578bc Compare April 26, 2022 22:52
@robhudson
Copy link
Member Author

Updated pulling the native locale strings from product_details. Thanks for the pro-tip @pmac!

@@ -128,6 +128,92 @@ def data_path(*args):
# path to updated p-d data for testing before loading into DB
PROD_DETAILS_TEST_DIR = str(Path(PROD_DETAILS_JSON_REPO_PATH).joinpath("public", "1.0"))

# Regions defined on the `/locales/` page.
LOCALES_BY_REGION = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👨‍🍳 💋

Copy link
Member

@pmac pmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👨‍🍳💋

@robhudson robhudson force-pushed the 6454-automate-locales-page branch 2 times, most recently from 83f9d65 to 9c5b826 Compare April 27, 2022 17:45
@robhudson robhudson force-pushed the 6454-automate-locales-page branch from 9c5b826 to 6e25ca9 Compare April 27, 2022 18:38
@robhudson robhudson merged commit b765f7d into mozilla:main Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants