fix(userinfo): 🐛 use more appropiate i18n for edit label

Closes: #944
This commit is contained in:
alistair3149 2024-09-10 22:16:05 -04:00
parent ab62d65768
commit 19441d8a74
No known key found for this signature in database

View file

@ -70,8 +70,7 @@ class CitizenComponentUserInfo implements CitizenComponent {
}
$edits = (string)number_format( $edits, 0 );
$label = $this->localizer->msg( 'usereditcount' )->numParams( $edits )->text();
$label = str_replace( $edits, '', $label );
$label = $this->localizer->msg( 'citizen-sitestats-edits-label' )->text();
return [
'count' => $edits,