Debian Codegraph @

addons/website_sale/static/src/js/location_selector/location/location.js

raw
1 import {
2 Location
3 } from '@delivery/js/location_selector/location/location';
4 import { patch } from '@web/core/utils/patch';
5 import { _t } from '@web/core/l10n/translation';
6
7 patch(Location.prototype, {
8 get openingHoursLabel() {
9 // The original definition of this getter is in `delivery` module which is not a frontend module. This problem happens in the context of the website. So, it should be repeated here as translations are only fetched in the context of a frontend module, which is `website_sale` in this case.
10 return _t("Opening hours");
11 },
12 });