dart-lang / i18n

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

LLLL pattern does not work (stand alone month) #675

Open ktiniatros opened 1 year ago

ktiniatros commented 1 year ago

Describe the bug LLLL pattern does not work as intended. Instead, it uses the MMMM pattern.

To Reproduce Add the following test in main of custom tests:

test('stand alone month is correct', () {
  final dateFormat = DateFormat.LLLL('el_GR');
  final date = DateTime.now().copyWith(month: 7);
  final formattedDate = dateFormat.format(date);
  expect(formattedDate, equals('Ιούλιος'));
});

The expected value in the test provided is based on the stand alone month values of the locale.

System info

Dart SDK 3.0.5
Flutter SDK 3.10.5
intl 0.19.0-dev

dependencies:
- clock 1.1.1
- meta 1.9.1
- path 1.8.3

dev dependencies:
- benchmark_harness 2.2.2
- ffi 1.2.1
- fixnum 1.1.0
- js 0.6.7 [meta]
- lints 2.1.1
- test 1.24.4 [analyzer async boolean_selector collection coverage http_multi_server io js matcher node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel test_api test_core typed_data web_socket_channel webkit_inspection_protocol yaml]

transitive dependencies:
- _fe_analyzer_shared 62.0.0 [dart_internal meta]
- analyzer 6.0.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- args 2.4.2
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- collection 1.17.2
- convert 3.1.1 [typed_data]
- coverage 1.6.3 [args logging package_config path source_maps stack_trace vm_service]
- crypto 3.0.3 [typed_data]
- dart_internal 0.2.8
- file 7.0.0 [meta path]
- frontend_server_client 3.2.0 [async path]
- glob 2.1.2 [async collection file path string_scanner]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- io 1.0.4 [meta path string_scanner]
- logging 1.2.0
- matcher 0.12.16 [async meta stack_trace term_glyph test_api]
- mime 1.0.4
- node_preamble 2.0.2
- package_config 2.1.0 [path]
- pool 1.5.1 [async stack_trace]
- pub_semver 2.1.4 [collection meta]
- shelf 1.4.1 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 3.0.2 [path shelf shelf_static]
- shelf_static 1.1.2 [convert http_parser mime path shelf]
- shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel]
- source_map_stack_trace 2.1.1 [path source_maps stack_trace]
- source_maps 0.10.12 [source_span]
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.0 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- test_core 0.5.4 [analyzer args async boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel test_api vm_service yaml]
- typed_data 1.3.2 [collection]
- vm_service 11.7.2
- watcher 1.1.0 [async path]
- web_socket_channel 2.4.0 [async crypto stream_channel]
- webkit_inspection_protocol 1.2.0 [logging]
- yaml 3.1.2 [collection source_span string_scanner]
mosuem commented 1 year ago

After looking into it a bit deeper, this might rather be an upstream CLDR data issue. I have filed a bug there.