property
TrimOptions.locales
locales?: string[]
The only locales to keep, such as "en" or "de-AT".
Without it, Bun keeps the locales your code passes to Intl as constants, and every locale if one of them isn't a constant. If the program asks for a locale that was removed, the process exits with code 70. It has no effect on macOS, where Bun uses the system's ICU.
Equivalent CLI flag: --trim-locales, which implies --trim