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

Use the Spanish name of Amazonas, Peru #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pdpinch
Copy link
Member

@pdpinch pdpinch commented Nov 15, 2022

A user from Peru wrote in and pointed out that Amazonas is missing from our list of regions in Peru.

After consulting with Wikipedia, I found that we are using the Spanish spelling of Peru regions, except for Amazonas, where we use the Quecha spelling. I prefer consistency to trying to figure out a domestic political issue. We should change Amarumayu to Amazonas.

What are the relevant tickets?

mitodl/micromasters#5247

What's this PR do?

Amarumayu -> Amazonas

How should this be manually tested?

install the library in an instance of micromasters and edit your profile to change your address to Peru.

Related issues

If you give this a thumbs up, please open an upstream PR with the original library. It doesn't seem to be actively maintained, buy I'd still like to share our fixes.

@collinpreston collinpreston self-assigned this Dec 6, 2022
Copy link

@collinpreston collinpreston left a comment

Choose a reason for hiding this comment

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

So this works for me but I had to perform a few other steps to get it working which resulted in some additional changes that might be required for this PR to have an effect.
Steps

  1. Take your change to data.csv
  2. Delete iso3166.min.js
  3. Since I use python 3 I needed to update parse.py to meet python 3 syntax.
  4. Run make. This generated the iso3166.min.js file. I'm not sure if this file is required or not for your change to take effect when published in a package repository such as npm.
    You can see all of my changes here: https://github.com/mitodl/iso-3166-2.js/tree/collin-test

@collinpreston collinpreston added the waiting on author waiting on author label Dec 7, 2022
@pdpinch
Copy link
Member Author

pdpinch commented Dec 7, 2022

I forgot about making the minified version.

Can you open a separate PR for your python3 changes? It seems like we should add those (first), but not in the same PR/commit.

@collinpreston collinpreston linked an issue Mar 13, 2023 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on author waiting on author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect spelling of Peruvian region "Amazonas"
2 participants