(config: IntlConfig<T>)
| 38 | } |
| 39 | |
| 40 | function verifyConfigMessages<T = string>(config: IntlConfig<T>) { |
| 41 | if ( |
| 42 | config.onWarn && |
| 43 | config.defaultRichTextElements && |
| 44 | messagesContainString(config.messages || {}) |
| 45 | ) { |
| 46 | config.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. |
| 47 | Please consider using "@formatjs/cli" to pre-compile your messages for performance. |
| 48 | For more details see https://formatjs.github.io/docs/getting-started/message-distribution`) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Create intl object |
no test coverage detected