Active
Project:
Drupal core
Version:
main
Component:
locale.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2026 at 10:00 UTC
Updated:
27 Jun 2026 at 10:00 UTC
Jump to comment: Most recent
Follow-up of #2660338: Deprecate locale_get_plural, StringTranslationTrait::getNumberOfPlurals() is another hidden dependency on locale module.
Unlike formatPlural(), this one just has a handful of usages across core and contrib, most already depend on the locale module, just one in views module doesn't explicitly, but the whole functionality it's used in specifically is about multilingual stuff.
Deprecate the method on the trait, let callers call the locale service directly.
Comments