Function: hasLocaleMessage() ​

Source: 1.1.0 · a1d5eeca2f43

ts
function hasLocaleMessage(messages, key): boolean;

Defined in: packages/valaxy/shared/utils/i18n.ts:47

Whether a locale message exists for the given key.

Parameters ​

messages ​

Record<string, any> | undefined

key ​

string

Returns ​

boolean