[BUG] Incorrect Portuguese locale #1725

Closed
opened 2026-02-05 03:23:09 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @andredasilvapinto on GitHub (Dec 5, 2023).

The bug

Portuguese locale is defined as Locale('pt', 'PR') here. Country code "PR" is typically Puerto Rico. Portugal is "PT".

There are also other Portuguese locales that might need to be added to that file in case you have translations for them (not sure what the purpose of the file is though).

Finally, not sure how relevant it is but there is an entry for pt_BR (Brazil) here https://github.com/immich-app/immich/blob/main/localizely.yml#L33-L34 but not for pt_PT (Portugal).

The OS that Immich Server is running on

Ubuntu

Version of Immich Server

1.88.2

Version of Immich Mobile App

1.89.0 build.113

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

N/A

Additional information

No response

Originally created by @andredasilvapinto on GitHub (Dec 5, 2023). ### The bug Portuguese locale is defined as `Locale('pt', 'PR')` [here](https://github.com/immich-app/immich/blob/main/mobile/lib/constants/locales.dart#L17). Country code "PR" is typically Puerto Rico. Portugal is "PT". There are also [other Portuguese locales](https://www.localeplanet.com/icu/iso639.html#pt) that might need to be added to that file in case you have translations for them (not sure what the purpose of the file is though). Finally, not sure how relevant it is but there is an entry for pt_BR (Brazil) here https://github.com/immich-app/immich/blob/main/localizely.yml#L33-L34 but not for pt_PT (Portugal). ### The OS that Immich Server is running on Ubuntu ### Version of Immich Server 1.88.2 ### Version of Immich Mobile App 1.89.0 build.113 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash N/A ``` ### Additional information _No response_
OVERLORD added the 📱mobile label 2026-02-05 03:23:09 +03:00
Author
Owner

@bo0tzz commented on GitHub (Dec 5, 2023):

Side note: should we be defining these locale codes ourselves at all?

@bo0tzz commented on GitHub (Dec 5, 2023): Side note: should we be defining these locale codes ourselves at all?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1725