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

feat (rotor): Add localized names for continents, countries, regions, and cities #1155

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

dmeremyanin
Copy link
Contributor

@dmeremyanin dmeremyanin commented Dec 12, 2024

This PR introduces two key improvements to geographical data handling:

  1. Previously, the name field existed for cities and countries but was missing for continents and regions. This PR adds the name field to continents and regions.
  2. Implemented support for localizing geographical names based on locale. This can be configured via the optional MAXMIND_LOCALE environment variable. If not set, the default language remains English.

The list of available locales can be found here:
https://maxmind.github.io/GeoIP2-node/interfaces/Names.html

@dmeremyanin dmeremyanin changed the title feat(rotor): Add localized names for continents, countries, regions, and cities feat (rotor): Add localized names for continents, countries, regions, and cities Dec 12, 2024
@dmeremyanin dmeremyanin force-pushed the rotor-names-localization branch from bbbf64f to 552dd10 Compare December 12, 2024 02:38
@dmeremyanin dmeremyanin force-pushed the rotor-names-localization branch from 552dd10 to f08be77 Compare December 14, 2024 09:56
@absorbb absorbb merged commit 344de67 into jitsucom:newjitsu Dec 17, 2024
1 of 4 checks passed
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.

3 participants