162 Use translation function in home component
This commit is contained in:
1 parent
e0f64173bf
commit
f3cabe5ca1
4 files changed
+13
-13
No files matched your search
@@ -17,8 +17,8 @@ function getTimes(prediction) {
|
||||
return { todayDate, predictedBleedingStart, predictedBleedingEnd, daysToEnd }
|
||||
}
|
||||
|
||||
export function determinePredictionText(bleedingPrediction) {
|
||||
if (!bleedingPrediction.length) return predictLabels.noPrediction
|
||||
export function determinePredictionText(bleedingPrediction, t) {
|
||||
if (!bleedingPrediction.length) return t('components.Home.noPrediction')
|
||||
const {
|
||||
todayDate,
|
||||
predictedBleedingStart,
|
||||
|
||||
Reference in new issue
Block a user