Function: hasLocaleMessage() ​

Source: 1.1.0 · e3417e89b638

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