Merge branch '98-function-to-get-predicted-bleeding-dates' into 'master'
Resolve "write function to get predicted bleeding dates (and use it in calendar)" Closes #97 and #98 See merge request bloodyhealth/drip!60
This commit is contained in:
@@ -75,4 +75,13 @@ export const stats = {
|
||||
minLabel: 'Shortest cycle',
|
||||
maxLabel: 'Longest cycle',
|
||||
stdLabel: 'Standard deviation'
|
||||
}
|
||||
|
||||
export const bleedingPrediction = {
|
||||
noPrediction: 'There is not enough period data to predict the next one.',
|
||||
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 during the next ${numberOfDays} days.`,
|
||||
predictionStarted1DayLeft: 'Your period is likely to start today or tomorrow.',
|
||||
predictionStartedNoDaysLeft: 'Your period is likely to start today.',
|
||||
predictionInPast: (startDate, endDate) => `Based on your documented data, your period was likely to start between ${startDate} and ${endDate}.`
|
||||
}
|
||||
Reference in New Issue
Block a user