Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[RFC] [Validator] Suggest to apply\Locale::canonicalize() before validating withLocale constraint #7660

Closed
Labels
@phansys

Description

@phansys

It would be nice to have a note about\Locale::canonicalize() within theLocale constraint documentation, since many times locales are expressed using other "uncanonicalized" formats. By instance, a common use case is to infer the locale from javascript, wherenavigator.language returns values like "en-US" instead of "en_US"; making theLocale constraint to fail.
The canonicalization process is explained atICU project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp