***

title: "UseLocalFormat"
generated: true
---------------

<GenerationInfo sourceFile="packages/dashboard/src/lib/hooks/use-local-format.ts" sourceLine="27" packageName="@vendure/dashboard" />

This hook is used to format numbers and currencies using the configured language and
locale of the dashboard app.

*Example*

```ts
const {
         formatCurrency,
         formatNumber,
         formatDate,
         formatLanguageName,
         formatCurrencyName,
         toMajorUnits,
} = useLocalFormat();
```

```ts title="Signature"
function useLocalFormat(): void
```
