> ## Documentation Index
> Fetch the complete documentation index at: https://docs.napps.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AppUtils

`AppUtils` gives you small utility values and helpers from the app.

Use it when you need the current locale, country, or formatted currency.

## Global Name

```ts theme={null}
AppUtils
```

## API

```ts theme={null}
interface AppUtils {
  locale: string;
  country: string;
  formatCurrency(amount: string | number, currencyCode?: string): string;
}
```

## Properties

### locale

The current device/app locale.

```ts theme={null}
const locale = AppUtils.locale;
```

### country

The current country code.

```ts theme={null}
const country = AppUtils.country;
```

## Methods

### formatCurrency

Formats a number as currency.

```ts theme={null}
const price = AppUtils.formatCurrency(19.99, "EUR");
```

The amount can be a `number` or a numeric `string`.

If `currencyCode` is omitted, the app uses the default currency formatting available for the current context.
