fix(i18n): prepare for Lokalise
This commit is contained in:
@@ -138,21 +138,16 @@ function Trigger({
|
||||
}) {
|
||||
const intl = useIntl()
|
||||
|
||||
const parts = []
|
||||
|
||||
parts.push(
|
||||
const parts = [
|
||||
intl.formatMessage(
|
||||
{ id: "{totalRooms, plural, one {# room} other {# rooms}}" },
|
||||
{ totalRooms: rooms.length }
|
||||
)
|
||||
)
|
||||
|
||||
parts.push(
|
||||
),
|
||||
intl.formatMessage(
|
||||
{ id: "{totalAdults, plural, one {# adult} other {# adults}}" },
|
||||
{ totalAdults: rooms.reduce((acc, room) => acc + room.adults, 0) }
|
||||
)
|
||||
)
|
||||
),
|
||||
]
|
||||
|
||||
if (rooms.some((room) => room.childrenInRoom.length > 0)) {
|
||||
parts.push(
|
||||
|
||||
Reference in New Issue
Block a user