Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Address translation problem (#10492)

Anik Dhabal Babub893afb8b82f
diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.ts
index bb10026bc93..42d17c8b47d 100644
--- a/packages/app-store/locations.ts
+++ b/packages/app-store/locations.ts
@@ -303,13 +303,13 @@ export const getHumanReadableLocationValue = (
// Just in case linkValue is a `locationType.type`(for old bookings)
const eventLocationType = getEventLocationType(linkValue);
-
+ const isDefault = eventLocationType?.default;
if (eventLocationType) {
// If we can find a video location based on linkValue then it means that the linkValue is something like integrations:google-meet and in that case we don't have the meeting URL to show.
// Show a generic message in that case.
- return `${eventLocationType.label}`;
+ return isDefault ? translationFunction(eventLocationType.label) : `${eventLocationType.label}`;
}
- // Otherwise just show the available link value which can be a Phone number, a URL or a physical address of a place.
+ // Otherwise just show the available link value.
return linkValue || "";
};