move hard coded headers and explainers from temperature to i18n labels
- issue: 127 - by: sg
This commit is contained in:
@@ -101,7 +101,7 @@ export default class Temp extends Component {
|
|||||||
<ScrollView style={styles.page}>
|
<ScrollView style={styles.page}>
|
||||||
<View>
|
<View>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
header="Temperature (°C)"
|
header={labels.temperature.header}
|
||||||
explainer={labels.temperature.explainer}
|
explainer={labels.temperature.explainer}
|
||||||
inline={true}
|
inline={true}
|
||||||
>
|
>
|
||||||
@@ -112,7 +112,7 @@ export default class Temp extends Component {
|
|||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
header="Time"
|
header={labels.time}
|
||||||
inline={true}
|
inline={true}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
@@ -136,7 +136,7 @@ export default class Temp extends Component {
|
|||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
header="Note"
|
header={labels.note.header}
|
||||||
explainer={labels.note.explainer}
|
explainer={labels.note.explainer}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
@@ -150,8 +150,8 @@ export default class Temp extends Component {
|
|||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
header="Exclude"
|
header={labels.exclude.header}
|
||||||
explainer={labels.excludeExplainer}
|
explainer={labels.exclude.explainer}
|
||||||
inline={true}
|
inline={true}
|
||||||
>
|
>
|
||||||
<Switch
|
<Switch
|
||||||
|
|||||||
@@ -89,12 +89,18 @@ export const temperature = {
|
|||||||
outOfAbsoluteRangeWarning: 'This temperature value is too high or low to be shown on the temperature chart.',
|
outOfAbsoluteRangeWarning: 'This temperature value is too high or low to be shown on the temperature chart.',
|
||||||
saveAnyway: 'Save anyway',
|
saveAnyway: 'Save anyway',
|
||||||
temperature: {
|
temperature: {
|
||||||
|
header: "Temperature (°C)",
|
||||||
explainer: 'Take your temperature right after waking up, before getting out of bed'
|
explainer: 'Take your temperature right after waking up, before getting out of bed'
|
||||||
},
|
},
|
||||||
|
time: "Time",
|
||||||
note: {
|
note: {
|
||||||
|
header: "Note",
|
||||||
explainer: 'Is there anything that could have influenced this value, such as bad sleep or alcohol consumption?'
|
explainer: 'Is there anything that could have influenced this value, such as bad sleep or alcohol consumption?'
|
||||||
},
|
},
|
||||||
excludeExplainer: "You can exclude this value if you don't want to use it for fertility detection"
|
exclude: {
|
||||||
|
header: "Exclude",
|
||||||
|
explainer: "You can exclude this value if you don't want to use it for fertility detection"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const noteExplainer = "Anything you want to add for the day?"
|
export const noteExplainer = "Anything you want to add for the day?"
|
||||||
|
|||||||
Reference in New Issue
Block a user