blockly > utils > 解析 > checkMessageReferences

utils.parsing.checkMessageReferences() 函数

验证消息中的所有 %{MSG_KEY} 引用是否都引用了消息字符串表的键。

Signature:

export declare function checkMessageReferences(message: string): boolean;

参数

参数 类型 说明
信息 string 可能包含字符串表引用的文本。

返回

boolean

如果所有消息引用的值都有匹配的值,则为 true。否则,则为 False。