forked from MycroftAI/lingua-franca
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
.. when > 1 day
ovos-lingua-franca/lingua_franca/format.py
Lines 524 to 539 in d8596ee
| out = "" | |
| if days > 0: | |
| out += pronounce_number(days, lang) + " " | |
| if days == 1: | |
| out += _translate_word("day", lang) | |
| else: | |
| out += _translate_word("days", lang) | |
| out += " " | |
| if hours > 0: | |
| if out: | |
| out += " " | |
| out += pronounce_number(hours, lang) + " " | |
| if hours == 1: | |
| out += _translate_word("hour", lang) | |
| else: | |
| out += _translate_word("hours", lang) |
resulting in "1 day 23 hours"
Metadata
Metadata
Assignees
Labels
No labels