diff --git a/CHANGELOG.md b/CHANGELOG.md index 20806586fa..b07063c8a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2018-XX-XX +* [change] Remove generic perUnit translations and replace them with specific night, day and unit translations depending on booking unit chosen in config. + [#970](https://github.com/sharetribe/flex-template-web/pull/970) * [change] Update outdated dependencies. **Note:** Updating Prettier caused multiple file changes mostly to .md files and compose setup. diff --git a/src/config.js b/src/config.js index 32fd24ed92..e6fb578d7a 100644 --- a/src/config.js +++ b/src/config.js @@ -32,10 +32,9 @@ const bookingProcessAlias = 'preauth-with-nightly-booking/release-1'; // // Possible values: ['line-item/night', 'line-item/day', 'line-item/units';] // -// Note: if you change this, many of the generic translations will -// still show information about nights. Make sure to go through the -// translations when the unit is changed. -const bookingUnitType = 'line-item/night'; +// Note: translations will use different translation keys for night, day or unit +// depending on the value chosen. +const bookingUnitType = 'line-item/units'; // Should the application fetch available time slots (currently defined as // start and end dates) to be shown on listing page.