You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Default | 29.3 MB | Full ICU data, all locales and features |
13
-
|`ICUDataSlim`| 8.5 MB | Excludes some ICU features not used by Foundation; <br/> locale limited to `en_US` (see [default.json](./Scripts/filters/default.json)) |
14
-
|`ICUDataSlim_Minimal`| 1.2 MB | Excludes even more features for a smaller footprint; <br/> locale limited to `en_US` (see [minimal.json](./Scripts/filters/minimal.json)) |
13
+
|`ICUDataSlim`| 8.6 MB | Excludes some ICU features not used by Foundation; <br/> locale limited to `en_001` (see [default.json](./Scripts/filters/default.json)) |
14
+
|`ICUDataSlim_Minimal`| 1.5 MB | Excludes even more features for a smaller footprint; <br/> locale limited to `en_001` (see [minimal.json](./Scripts/filters/minimal.json)) |
15
15
16
16
## When to use minimal
17
17
@@ -57,6 +57,15 @@ See the [`Example`](./Example) directory for a complete setup.
57
57
> [!WARNING]
58
58
> The pre-compiled ICU data included in this package assumes a little endian platform. Big endian platforms are not supported. (Swift does not officially support big endian platforms though)
59
59
60
+
## FAQ
61
+
62
+
### Why is `en_001` used as the only available locale?
63
+
64
+
The slimmed-down variants include only the `en_001` locale.
65
+
On non-Apple platforms, the swift-foundation implementation *always* returns `en_001` by `Locale.current` regardless of environment variables or system locale settings.
66
+
67
+
For more details, you can refer to the relevant implementation in the [swift-foundation source code](https://github.com/swiftlang/swift-foundation/blob/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-07-08-a/Sources/FoundationEssentials/Locale/Locale_Unlocalized.swift#L39).
68
+
60
69
## License
61
70
62
71
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
0 commit comments