mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
Reverse geocoding derived the country name from i18n-iso-countries'
getName(), which returns ISO 3166 official names such as "Taiwan,
Province of China" and "People's Republic of China". The city and state
already come from the GeoNames geodata; only the country name took a
separate path through a JavaScript library.
Resolve the country name from GeoNames' countryInfo.txt instead, so the
whole address comes from one source. This produces neutral names
("Taiwan", "China") and lets us drop the i18n-iso-countries dependency;
the file's alpha-3 column also covers the Natural Earth fallback lookup.
countryInfo.txt is added to the geodata bundle in immich-app/base-images.
|
||
|---|---|---|
| .. | ||
| bin | ||
| src | ||
| test | ||
| .gitignore | ||
| .npmignore | ||
| .prettierignore | ||
| .prettierrc | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| eslint.config.mjs | ||
| helmet.json | ||
| mise.toml | ||
| nest-cli.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||