# findLocaleKeys

List the locale tags a lookup falls back through, most specific first

## Import

```ts
import { findLocaleKeys } from "@videojs/html/i18n";
```

`findLocaleKeys` returns the fallback chain the player resolves a locale through: the normalized tag from [`getLocaleKey`](./get-locale-key.md), then each shorter prefix, ending with `en`. A Chinese tag with a script, such as `zh-Hant-HK`, also falls back through `zh-tw` or `zh-cn` before `zh`. A translation missing from one locale is looked up in the next.

```ts
import { findLocaleKeys } from '@videojs/html/i18n';

findLocaleKeys('es-419-u-nu-latn'); // ['es-419', 'es', 'en']
findLocaleKeys('fr'); // ['fr', 'en']
```

## API Reference

`findLocaleKeys(locale): Locale[]`

### Parameters

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `locale` (required) | `(typeof LOCALES)[number] \| string & {}` | — | BCP 47 tag to resolve. |

### Return Value

`Locale[]`