Clean up legacy locale mapping comments

pull/7330/head
Shlee 1 week ago committed by GitHub
parent 0aa4da98e3
commit cbaeba7b6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,18 +9,7 @@ class Localization
/** /**
* Legacy two-letter (and legacy region) language codes mapped to the * Legacy two-letter (and legacy region) language codes mapped to the
* current locale-coded folder names under lang/. * current locale-coded folder names under lang/.
* * Added September 2026 - DELETE AFTER COMMUNICATION WITH ADMINS
* Pixelfed historically shipped translations under short codes (e.g. "es",
* "zh-cn"). Those folders were renamed to full locale codes (e.g. "es-ES",
* "zh-CN"). An instance upgrading with an old APP_LOCALE would otherwise
* resolve to a missing folder and silently fall back to English. This map
* lets an old APP_LOCALE keep working without any .env change on upgrade.
*
* The two codes that were ambiguous after the rename are pinned:
* - "en" => "en-US" (not the "en-x-pirate" novelty locale)
* - "sr" => "sr-CS" (Serbian; the prior single Serbian translation)
*
* DELETE NEXT MAJOR RELEASE
* *
* @var array<string, string> * @var array<string, string>
*/ */

Loading…
Cancel
Save