Skip to content

Internationalize date validation #7

@npotier

Description

@npotier

Hello @romainguerrero. Thanks for your amazing work on this bundle, its really awesome to be able to validate symfony forms with javascript.

I've noticed that date format check is only for french format :

"data-rule-dateITA" => 'true', // use dateITA to get french format (dateFR is not implemented yet)

it would be great to get the current locale from the translator service (http://api.symfony.com/2.8/Symfony/Component/Translation/Translator.html#method_getLocale) to determine how to check the date format, or at least make the format configurable.

I would be please to help on this feature.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions