# FormatEnvironment (@salmonui/core/format)

> The FormatEnvironment interface of @salmonui/core/format: Value formatting backed by the platform Intl API. Formatter instances are created once per (locale, options) pair and cached per engine.

Canonical: https://salmonui.dev/docs/reference/core/format/FormatEnvironment

```ts
import type { FormatEnvironment } from '@salmonui/core/format';
```

Entry index: https://salmonui.dev/docs/reference/core/format (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/format.md).

## Reference

Kind: interface

```ts
interface FormatEnvironment {
    getLocale(): string;
    readonly timeZone: string | undefined;
    readonly currency: string;
    readonly cache: Map<string, Intl.NumberFormat | Intl.DateTimeFormat | Intl.Collator>;
    readonly warn: Warn;
}
```

Value formatting backed by the platform `Intl` API. Formatter instances are
created once per (locale, options) pair and cached per engine.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `getLocale` | `getLocale(): string;` |  |  |
| `timeZone` | `readonly timeZone: string \| undefined;` |  |  |
| `currency` | `readonly currency: string;` |  |  |
| `cache` | `readonly cache: Map<string, Intl.NumberFormat \| Intl.DateTimeFormat \| Intl.Collator>;` |  |  |
| `warn` | `readonly warn: Warn;` |  |  |
