File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import TimeInput from './TimeInput'
1818import AmPmSwitcher from './AmPmSwitcher'
1919import { useLatest } from '../utils'
2020import Color from 'color'
21+ import { getTranslation } from '../translations/utils'
2122
2223function TimeInputs ( {
2324 hours,
@@ -28,6 +29,7 @@ function TimeInputs({
2829 onChange,
2930 is24Hour,
3031 inputFontSize,
32+ locale,
3133} : {
3234 inputType : PossibleInputTypes
3335 focused : PossibleClockTypes
@@ -41,6 +43,7 @@ function TimeInputs({
4143 } ) => any
4244 is24Hour : boolean
4345 inputFontSize ?: number
46+ locale ?: string
4447} ) {
4548 const startInput = React . useRef < TextInputNative | null > ( null )
4649 const endInput = React . useRef < TextInputNative | null > ( null )
@@ -113,7 +116,7 @@ function TimeInputs({
113116 />
114117 { inputType === 'keyboard' ? (
115118 < Text maxFontSizeMultiplier = { 1.5 } variant = "bodySmall" >
116- Hour
119+ { getTranslation ( locale , 'hour' , ' Hour' ) }
117120 </ Text >
118121 ) : null }
119122 </ View >
@@ -178,7 +181,7 @@ function TimeInputs({
178181 />
179182 { inputType === 'keyboard' ? (
180183 < Text maxFontSizeMultiplier = { 1.5 } variant = "bodySmall" >
181- Minute
184+ { getTranslation ( locale , 'minute' , ' Minute' ) }
182185 </ Text >
183186 ) : null }
184187 </ View >
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ function TimePicker({
114114 onChange = { onChange }
115115 onFocusInput = { onFocusInput }
116116 focused = { focused }
117+ locale = { locale }
117118 />
118119 { inputType === inputTypes . picker ? (
119120 < View style = { styles . clockContainer } >
You can’t perform that action at this time.
0 commit comments