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.

Simple date in spanish not working: "Agosto 23"

See original GitHub issue

The following program:

const chrono = require("chrono-node");
console.log(chrono.parse("Agosto 23"));
console.log(chrono.parse("August 23"));

Outputs:

[]
[ ParsedResult {
    ref: 2017-06-07T00:32:53.896Z,
    index: 0,
    text: 'August 23',
    tags: { ENMonthNameMiddleEndianParser: true },
    start: ParsedComponents { knownValues: [Object], impliedValues: [Object] } } ]

The second (english date) was parsed correctly, but the exact translation does not work.

Can you help?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wanasitcommented, Aug 20, 2017

@acrodrig For your use case, you can create the middle-endian as a custom parser for ES (see. how the little-endian parser work).

However, it would be nicer if you can implement the parser behind casual mode and submit make a PR. I don’t have much time recently, but I think we can help reviewing the change.

0reactions
acrodrigcommented, Aug 21, 2017

Thanks @wanasit. I will do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write Dates in Spanish
The number version is the simplest and easiest way to write the date in Spanish. It uses numbers to represent the day, month,...
Read more >
Dates in Spanish | YourDictionary
It's easy to learn how to say the days of the week and the months of the year in Spanish. Just be mindful...
Read more >
How to say months and dates in Spanish - The Lingoda Blog
Learning Spanish? In this post we go through the months and dates in Spanish. From spelling to pronunication. Read on to fund out...
Read more >
Writing and Saying Dates in Spanish - La fecha
Learn the format to write dates in Spanish and use days, months, phrases and SER to say dates in Spanish. Listen to conversations...
Read more >
5 Ways to Say the Date in Spanish - wikiHow
1. Use the formula "El numéro de mes." When someone asks you the date in Spanish, you'll always follow the same formula. Start...
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