willba-component-library 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.esm.js +14 -9
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +14 -9
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +14 -9
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.tsx +4 -4
- package/src/components/FilterBar/components/guests/Guests.tsx +3 -1
- package/src/locales/en/filterBar.json +5 -3
- package/src/locales/fi/filterBar.json +5 -3
package/package.json
CHANGED
|
@@ -120,8 +120,8 @@ export default function FilterBar({
|
|
|
120
120
|
|
|
121
121
|
<div className="will-filter-bar-header">
|
|
122
122
|
<SelectButton
|
|
123
|
-
label={'
|
|
124
|
-
description={'
|
|
123
|
+
label={t('calendar.label')}
|
|
124
|
+
description={t('calendar.labelPlaceholder')}
|
|
125
125
|
onClick={() => handleSelectedFilter(1)}
|
|
126
126
|
style={fontWeightBold(selectedFilter === 1)}
|
|
127
127
|
/>
|
|
@@ -131,8 +131,8 @@ export default function FilterBar({
|
|
|
131
131
|
<Divider />
|
|
132
132
|
|
|
133
133
|
<SelectButton
|
|
134
|
-
label={'
|
|
135
|
-
description={'
|
|
134
|
+
label={t('guests.label')}
|
|
135
|
+
description={t('guests.labelPlaceholder')}
|
|
136
136
|
onClick={() => handleSelectedFilter(2)}
|
|
137
137
|
style={fontWeightBold(selectedFilter === 2)}
|
|
138
138
|
/>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
|
|
3
4
|
import GuestCount from './GuestCount/GuestCount'
|
|
4
5
|
import { AgeCategoryCount, GuestsPropsType } from '../../FilterBarTypes'
|
|
@@ -10,9 +11,10 @@ export default function Guests({
|
|
|
10
11
|
updateGuestsCount,
|
|
11
12
|
ageCategoryCounts,
|
|
12
13
|
}: GuestsPropsType) {
|
|
14
|
+
const { t } = useTranslation('filterBar')
|
|
13
15
|
return (
|
|
14
16
|
<div className="will-filter-bar-guests">
|
|
15
|
-
<h3 className="will-guests-filter-title">
|
|
17
|
+
<h3 className="will-guests-filter-title">{t('guests.title')}</h3>
|
|
16
18
|
|
|
17
19
|
<div className="will-guests-filter-container">
|
|
18
20
|
{ageCategories?.map((category) => (
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"calendar": {
|
|
3
|
+
"label": "When",
|
|
4
|
+
"labelPlaceholder": "Add check-in and check-out",
|
|
3
5
|
"startDate": "Start date",
|
|
4
6
|
"endDate": "End date",
|
|
5
7
|
"title": "Calendar"
|
|
6
8
|
},
|
|
7
9
|
"guests": {
|
|
8
|
-
"label": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"label": "Who",
|
|
11
|
+
"labelPlaceholder": "Add guests",
|
|
12
|
+
"title": "Who's coming?",
|
|
11
13
|
"adultsLabel": "Adults",
|
|
12
14
|
"kidsLabel": "kids"
|
|
13
15
|
},
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"calendar": {
|
|
3
|
+
"label": "Milloin",
|
|
4
|
+
"labelPlaceholder": "Lisää check-in ja check-out",
|
|
3
5
|
"startDate": "Alku",
|
|
4
6
|
"endDate": "Loppu",
|
|
5
7
|
"title": "Kalenteri"
|
|
6
8
|
},
|
|
7
9
|
"guests": {
|
|
8
|
-
"label": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"label": "Kuka",
|
|
11
|
+
"labelPlaceholder": "Lisää vieraat",
|
|
12
|
+
"title": "Ketkä ovat tulossa?",
|
|
11
13
|
"adultsLabel": "Aikuiset",
|
|
12
14
|
"kidsLabel": "lapset"
|
|
13
15
|
},
|