-
Notifications
You must be signed in to change notification settings - Fork 112
Fix some minor issues in the English translations #293
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very satisfying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's def pretty! thank you for atoning for my sins...
@@ -260,9 +263,11 @@ | |||
["starting-in", "very-light-rain", ["less-than", ["minutes", 1]]]], | |||
|
|||
"Next hour forecasts are temporarily unavailable due to all nearby radar stations being offline.": | |||
["sentence",["next-hour-forecast-status", "temporarily-unavailable", "station-offline"]], | |||
["sentence", ["next-hour-forecast-status", "temporarily-unavailable", "station-offline"]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make the linter yell about these since otherwise i'll keep doing it 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linter doesn't check JSON :(
midori:translations jay$ ./node_modules/.bin/eslint test_cases/en.json
/Users/jay/Projects/Dark Sky/translations/test_cases/en.json
2:10 error Parsing error: Unexpected token :
✖ 1 problem (1 error, 0 warnings)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😭
This PR accomplishes the following:
String#startsWith
andString#endsWith
andString#includes
exist now. It's a lot cleaner to use them, so we do so.parenthetical
s to be generated with a generic or rain or sleet type. We are working to reduce the number of cases that this can possibly occur for, but in the meantime we should fix the translation to not be confusing. So: we add a test for this, and clarify that the parenthetical refers to a chance of snow accumulation in those cases. I also updated the README to note this.