162 Use translation function in home component

This commit is contained in:
Lisa Hillebrand
2021-05-02 21:21:53 +02:00
parent e0f64173bf
commit f3cabe5ca1
4 changed files with 13 additions and 13 deletions
-4
View File
@@ -4,9 +4,6 @@ const settingsTitles = labels.menuItems
export const home = {
unknown: '?',
phase: n => `${['1st', '2nd', '3rd'][n - 1]} cycle phase`,
cycleDay: ' day of your cycle',
cyclePhase: ' cycle phase - ',
addData: 'add data for today'
}
export const chart = {
@@ -69,7 +66,6 @@ export const stats = {
}
export const bleedingPrediction = {
noPrediction: `As soon as you have tracked 3 menstrual cycles, drip will make predictions for the next ones.`,
predictionInFuture: (startDays, endDays) => `Your next period is likely to start in ${startDays} to ${endDays} days.`,
predictionStartedXDaysLeft: (numberOfDays) => `Your period is likely to start today or within the next ${numberOfDays} days.`,
predictionStarted1DayLeft: 'Your period is likely to start today or tomorrow.',