fix: Make translations use plural forms
This commit is contained in:
parent
6c279b6bb3
commit
6d1c0e9338
40 changed files with 935 additions and 1226 deletions
|
|
@ -591,7 +591,7 @@ class BackgroundPush {
|
|||
client.rooms.forEach((Room room) => unreadEvents += room.notificationCount);
|
||||
|
||||
// Calculate title
|
||||
final title = l10n.unreadMessages(room.notificationCount.toString());
|
||||
final title = l10n.unreadMessages(room.notificationCount);
|
||||
|
||||
// Calculate the body
|
||||
final body = event?.getLocalizedBody(
|
||||
|
|
@ -671,7 +671,7 @@ class BackgroundPush {
|
|||
android: androidPlatformChannelSpecifics,
|
||||
iOS: iOSPlatformChannelSpecifics,
|
||||
);
|
||||
final title = l10n.unreadChats(unread.toString());
|
||||
final title = l10n.unreadChats(unread);
|
||||
await _flutterLocalNotificationsPlugin.show(
|
||||
await mapRoomIdToInt(roomId),
|
||||
title,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue