i18n icon indicating copy to clipboard operation
i18n copied to clipboard

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

Open insinfo opened this issue 1 year ago • 4 comments

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"

insinfo avatar Jul 11 '24 16:07 insinfo

Certifica que o import seja do local:

import 'package:intl/date_symbol_data_local.dart';

Igor0155 avatar Aug 06 '24 19:08 Igor0155

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

insinfo avatar Aug 06 '24 23:08 insinfo

@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 avatar Aug 07 '24 11:08 mosuem

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

mosuem avatar Aug 07 '24 11:08 mosuem