Repository navigation
[material_ui] Use correct time format for Sinhala locale - #13645
Conversation
The CLDR short time format for Sinhala (si) is `HH.mm`, but material_si.arb used `H:mm`. As a result, `TimeOfDay.format` returned `9:32` instead of `09.32`, and the time picker used `:` as the separator. Fixes flutter/flutter#196374
There was a problem hiding this comment.
Code Review
This pull request updates the Sinhala ('si') locale's 'timeOfDayFormat' from 'H:mm' to 'HH.mm' in 'material_si.arb' to match CLDR. It also adds a corresponding changelog entry and introduces regression tests in 'date_time_test.dart' to verify the formatting of Sinhala time values. There are no review comments, and I have no feedback to provide.
Thanks for catching this! Can we directly remove this in gen_material_localization.dart? so that these won't be added back accidentally next time. |
QuncCccccc
left a comment
There was a problem hiding this comment.
Other than the comment above, the PR LGTM! Thanks a lot for the fix:)
The header was removed from generated_material_localizations.dart on purpose, but the generator kept adding it back whenever the file was regenerated. This also documents the template's public members.
QuncCccccc
left a comment
There was a problem hiding this comment.
LGTM. Thank you for the fix! Let's update the PR description to reflect the latest change.
Done. Thanks! |
Done. Tnanks! |
…er#197056) flutter/packages@81b7c44...898818d 2026-11-20 [email protected] [material_ui] Use correct time format for Sinhala locale (flutter/packages#13645) 2026-11-20 [email protected] [material_ui] Fix showModalBottomSheet safe area on display-feature sub-screens (flutter/packages#13428) 2026-11-20 [email protected] [material_ui] Fix M3 doc errors in the `ElevatedButton` and `FilledButton` (flutter/packages#13685) 2026-11-19 [email protected] [video_player] Convert implementation to Kotlin (flutter/packages#13683) 2026-11-19 [email protected] [flutter_svg] Add SvgLoader.provideSvgInIsolate for unsendable loaders (flutter/packages#13598) 2026-11-19 [email protected] [VPAT] Expose modal drawers with the dialog semantics role (flutter/packages#13660) 2026-11-19 [email protected] [VPAT] Keep a11y_assessments tooltips open while hovered (flutter/packages#13657) 2026-11-19 [email protected] [flutter_svg] Stabilize network SVG cache keys (flutter/packages#13597) 2026-11-19 [email protected] [image_picker_ios] Return an error instead of an empty file when an image cannot be saved (flutter/packages#12998) 2026-11-19 [email protected] [cupertino_ui] Fix CupertinoNavigationBarBackButton assertion debug (flutter/packages#13397) 2026-11-19 [email protected] [go_router] Document when GoRouterState.name and path are null (flutter/packages#13486) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
The CLDR time format for Sinhala (
si) isHH.mm, butmaterial_si.arbusesH:mm. As a result,TimeOfDay(hour: 9, minute: 32).format(context)returns9:32instead of09.32, and the time picker uses:as the separator.DateFormat.Hm('si')frompackage:intlalready returns09.32, so apps that use both show the same time in two different formats.This changes
timeOfDayFormatinmaterial_si.arbtoHH.mm, regeneratesgenerated_material_localizations.dart, and addssicases to theHH_dot_mmtest intest/l10n/date_time_test.dart. The only change in the generated file is Sinhala'stimeOfDayFormatRaw, which becomesTimeOfDayFormat.HH_dot_mm. It also removes the/// @docImportheader from the Material template inscript/l10n/lib/gen_material_localizations.dart, which had been removed from the generated file on purpose, so regenerating no longer adds it back..Fixes flutter/flutter#196374
Pre-Review Checklist
[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2