Commit 55ffe2f
Revert "Use Intl.NumberFormat for time and byte formatting"
This reverts commit 6b3449e.
Reason for revert: currently failing the auto roller: https://ci.chromium.org/ui/p/devtools-internal/builders/try/devtools_frontend_linux_rel/b8731890377373202833/overview
Original change's description:
> Use Intl.NumberFormat for time and byte formatting
>
> TimeUtilities now uses Intl.NumberFormat (instead of UIStrings),
> and bytesToString now uses Intl.NumberFormat (instead of non-locale
> aware strings). Additionally, bytesToString is now under the i18n
> module.
>
> Impacts of this change:
>
> * use Chrome ICU locale data to format, rather than human translators,
> which allows us to be more accurate in regards to unit display style
> (narrow vs short vs long)
> * group separators (ex: thousands decimals in english) are now present
> * slight change to rounding behavior - Intl.NumberFormat defaults to
> "halfExpand", which rounds away from zeroes to break ties. Previously
> we just truncated
>
> See go/cpq:i18n-units-design
>
> Bug: 372723536
> Change-Id: Iff05ca9ff01213660d64ca88fadb613296153fa9
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5981156
> Reviewed-by: Simon Zünd <[email protected]>
> Commit-Queue: Connor Clark <[email protected]>
> Reviewed-by: Benedikt Meurer <[email protected]>
> Reviewed-by: Paul Irish <[email protected]>
Bug: 372723536
Change-Id: I82f74ae04729b9f6c514d7e186572a8ffade30cd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6003765
Commit-Queue: Kim-Anh Tran <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>1 parent 7858d12 commit 55ffe2f
File tree
44 files changed
+204
-391
lines changed- config/gni
- front_end
- core
- i18n
- platform
- panels
- application
- components
- coverage
- freestyler
- layer_viewer
- network
- performance_monitor
- profiler
- recorder/components
- timeline
- components
- insights
- ui/legacy/components
- object_ui
- source_frame
- utils
- test
- e2e/helpers
- interactions/goldens/linux/performance
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+204
-391
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | | - | |
783 | 782 | | |
784 | | - | |
785 | 783 | | |
786 | 784 | | |
787 | 785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | | - | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | | - | |
16 | 12 | | |
17 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 17 | + | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 23 | | |
42 | 24 | | |
43 | 25 | | |
| |||
139 | 121 | | |
140 | 122 | | |
141 | 123 | | |
142 | | - | |
| 124 | + | |
143 | 125 | | |
144 | 126 | | |
145 | 127 | | |
| |||
0 commit comments