Merged in fix/SW-2425-filter-label-lokalise (pull request #2602)
fix(SW-2425): filter description should be translated with lokalise * fix(SW-2425): filter description should be translated with lokalise Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -4,6 +4,8 @@ import { RoomPackageCodeEnum } from "@scandic-hotels/trpc/enums/roomFilter"
|
||||
|
||||
import { useMyStayStore } from "@/stores/my-stay"
|
||||
|
||||
import { getFeatureDescription } from "@/components/HotelReservation/utils/getRoomFeatureDescription"
|
||||
|
||||
import Row from "./Row"
|
||||
|
||||
export default function Packages() {
|
||||
@@ -17,7 +19,9 @@ export default function Packages() {
|
||||
item.code as RoomPackageCodeEnum
|
||||
)
|
||||
)
|
||||
.map((item) => item.description) || []
|
||||
.map((item) =>
|
||||
getFeatureDescription(item.code, item.description, intl)
|
||||
) || []
|
||||
)
|
||||
|
||||
if (!packages.length) {
|
||||
|
||||
Reference in New Issue
Block a user