dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
62 stars 36 forks source link

not possible to call initializeDateFormatting('pt_BR',null) as described in pub.dev #856

Open insinfo opened 2 months ago

insinfo commented 2 months ago

it is not possible to call initializeDateFormatting('pt_BR',null) as described in pub.dev because in intl-0.19.0 it is requiring a second filePath argument (which I don't know what it is)

image

image Dart SDK version: 3.2.1 (stable) (Wed Nov 22 08:59:13 2023 +0000) on "windows_x64"

Igor0155 commented 1 month ago

Certifica que o import seja do local:

import 'package:intl/date_symbol_data_local.dart';

insinfo commented 1 month ago

I ended up discovering this on my own, but ideally this would be better documented in the intl package.

mosuem commented 1 month ago

@insinfo Yeah, the different initializeDateFormatting are pretty confusing. Any idea where this should best be documented? I would be happy to add some help around this frequent issue, and you might know best given that you recently ran into this.

mosuem commented 1 month ago

Feel free to point out where you would look, or file a PR directly :)