Needs review
Project:
Drupal core
Version:
main
Component:
locale.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2026 at 13:56 UTC
Updated:
4 Jun 2026 at 22:59 UTC
Jump to comment: Most recent
In the 11.4 prep cycle we did a large amount of refactoring in locale and introduced value objects where helpful.
For BC we preserved the array keys as properties, but found many are not necessary.
Let's deprecate them now that we can.
#3037031: Convert locale.compare.inc to a service
#3569328: Modernize locale.translations.inc
#3581303: Convert locale batch callbacks
#3577671: Modernize locale file handling
#3572339: Modernize locale.fetch.inc
#3590050: Deprecate and replace locale_status related functions
#3037156: Modernize locale history functions
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
berdirMostly straightforward, requires quite a lot of phstan-ignore annotations as I didn't want to remove the writes yet, just in case someone still incorrectly passes things around through BC layers, should be extremely rare though.