Skip to content

TimeOfDay.format() localization issue in language 'ta' #108125

@jacobsimionato

Description

@jacobsimionato

Crossposting from internal issue 238922926 - see that for more context. This issue is blocking a Google app release with a deadline in August. The fix would need to be merged in Github by early September to give it time to roll.

We use flutter library TimeOfDay.format() to construct time like 8:00 AM, 6:00 PM etc. But the localization doesn't work well in certain language.

Locale(s) affected: ta

Issue: Linguist reported that the AM mentioned before the numeral value.

Source: 3:00 AM - 9:00 AM
Current: AM 3:00 - AM 9:00
Expected: 3:00 AM - 9:00 AM

Minimal repro steps:
Sample code: TimeOfDay(hour: 9).format(context)

Steps:

  1. Go to language settings and select language tamil(Locale: ta)
  2. Do TimeOfDay(hour: 9).format(context).
  3. It will display time as screenshot

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: internationalizationSupporting other languages or locales. (aka i18n)customer: googleVarious Google teams

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions