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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -120,8 +120,8 @@ export default function FilterBar({
120
120
 
121
121
  <div className="will-filter-bar-header">
122
122
  <SelectButton
123
- label={'When'}
124
- description={'Add Check-in and -out'}
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={'Who'}
135
- description={'Add Guests'}
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">Who's coming?</h3>
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": "Guests",
9
- "title": "Guests",
10
- "subtitle": "Who's coming?",
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": "Vieraat",
9
- "title": "Vieraat",
10
- "subtitle": "Kuka saapuu?",
10
+ "label": "Kuka",
11
+ "labelPlaceholder": "Lisää vieraat",
12
+ "title": "Ketkä ovat tulossa?",
11
13
  "adultsLabel": "Aikuiset",
12
14
  "kidsLabel": "lapset"
13
15
  },