Function: convertI18NInterpolationToRegex()
convertI18NInterpolationToRegex(
str
):string
|RegExp
Utility function to convert the vue-i18n message format syntax to a regex for finding an instance of that string, in particular for tests. https://vue-i18n.intlify.dev/guide/essentials/syntax.html
Parameters
Parameter | Type |
---|---|
str | string |
Returns
string
| RegExp