• Daniel Ehrenberg's avatar
    [intl] Use a service-dependent default locale · 5228af67
    Daniel Ehrenberg authored
    Different Intl features (DateTimeFormat, NumberFormat, etc) have
    different lists of locales supported. Previously, the default locale
    was set to "und", as opposed to what was detected from the surrounding
    system, if any of these features was missing data. With this patch,
    only that feature is set to "und". In this way, the data quality should
    be just as good as if there were no fallback logic, but at the same time,
    resolvedOptions().locale should show the locale actually in effect.
    
    R=adamk,jshin
    BUG=v8:6288
    
    Change-Id: I62b083a1dde2465cb1541cb18ecc7e59f9097bc0
    Reviewed-on: https://chromium-review.googlesource.com/492886
    Commit-Queue: Daniel Ehrenberg <littledan@chromium.org>
    Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#45109}
    5228af67
intl.js 65.5 KB