Add translations to StatsTable
This commit is contained in:
@@ -67,19 +67,23 @@ StatsTable.propTypes = {
|
|||||||
|
|
||||||
const ItemDivider = () => <View style={styles.divider} />
|
const ItemDivider = () => <View style={styles.divider} />
|
||||||
|
|
||||||
const FlatListHeader = () => (
|
const FlatListHeader = () => {
|
||||||
|
const { t } = useTranslation(null, { keyPrefix: 'stats' })
|
||||||
|
|
||||||
|
return (
|
||||||
<View style={styles.row}>
|
<View style={styles.row}>
|
||||||
<View style={styles.accentCell}>
|
<View style={styles.accentCell}>
|
||||||
<AppText style={styles.header}>{'Cycle Start'}</AppText>
|
<AppText style={styles.header}>{t('cycle_start')}</AppText>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.cell}>
|
<View style={styles.cell}>
|
||||||
<AppText style={styles.header}>{'Cycle Length'}</AppText>
|
<AppText style={styles.header}>{t('cycle_length')}</AppText>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.cell}>
|
<View style={styles.cell}>
|
||||||
<AppText style={styles.header}>{'Bleeding'}</AppText>
|
<AppText style={styles.header}>{t('bleeding')}</AppText>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
accentCell: {
|
accentCell: {
|
||||||
|
|||||||
Reference in New Issue
Block a user