question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect English grammar of plural "years" after a single year: "1 years ago"

See original GitHub issue

image

Seems this is returned from the date-fns formatDistance utility.

Maybe it needs to be specified to use the United States english locale? I see in date-fns master the en-US locale should display correctly… I haven’t compared versions to see if a update would fix this. 🤔

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
codyogdencommented, Oct 21, 2018

@Synsyxx You’ve got it. 💯Using formatDistance inside of Line 111, and taking out the word “years” would do it!

1reaction
tsimpsoncommented, Oct 21, 2018

Fairly new to this sort of stuff, but if I’m understanding it right, should just need to replace 111 with formatDistance? Or maybe distanceInWords? Just reading over the docs for date-fns to try to understand how it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Years' or Year's or Years - BusinessWritingBlog
Well, all three are perfectly correct depending on the context. Here is the quick rundown: Years is the plural of the word “year”....
Read more >
What Is the Difference Between Years and Year's?
“Years” is the plural form of year, indicating multiple years. We use “year's,” with an added apostrophe, to indicate the singular ...
Read more >
Common English Grammar Errors with Plurals - YouTube
You will also learn three categories of nouns: irregular, single, and plural. Watch this lesson to improve your English dramatically in just a ......
Read more >
Writing Dates and Times
Our Rule 9 of Commas says, “Use a comma to separate the day of the month from the year, and—what most people forget!—always...
Read more >
Apostrophe | Effective Writing Practices Tutorial
Apostrophe errors often occur when the plural form and the possessive form are confused. Additionally, apostrophes also tend to be used incorrectly with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found