Skip to content

Conversation

@juansegnana
Copy link

Summary

Enhances Spanish locale support with new parsers, configurations, and comprehensive test coverage.

Changes

  • Add dedicated configuration module for Spanish locale
  • Expand Spanish constants with additional weekday, month, and time unit patterns
  • Implement 8 new parsers:
    • Casual year-month-day formats
    • Month name parsing (middle-endian and standalone)
    • Relative date formats ("pasado mañana", "anteayer")
    • Slash month formats
    • Time unit expressions ("hace X días", "dentro de X horas")
  • Add merge refiner for relative dates
  • Include new tests

- Added new parsers for casual date formats, including month and year combinations.
- Introduced refiners for merging relative dates with absolute dates.
- Updated constants to include full month names and ordinal numbers.
- Created a default configuration class for Spanish chrono, streamlining parser integration.
- Added comprehensive tests for relative date expressions and time units in Spanish.

This update improves the accuracy and flexibility of date parsing in the Spanish locale.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant