I18n.exists method
I18n › exists
Unofficial
Checks whether a translation key exists.Signature:
exists(key: string | string[], options?: Record<string, unknown> | undefined): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| key | string | string[] | Translation key. |
| options? | Record<string, unknown> | undefined | Additional options. |
Returns: boolean — Whether the key exists.