Work in progress on supporting languages in custom forms
This commit is contained in:
parent
ec299053ba
commit
f7cbcf871d
4 changed files with 28 additions and 10 deletions
|
@ -145,7 +145,7 @@ function parseSpec(specStr) {
|
|||
}
|
||||
|
||||
// see http://blog.stevenlevithan.com/archives/match-quoted-string
|
||||
const tMatcher = /(^|[ {+(=])((?:tUI|tLog|t|tMark)\s*\(\s*(?:\/\*(.*?)\*\/)?\s*)(["'])((?:(?!\4)[^\\]|\\.)*)(\4)/;
|
||||
const tMatcher = /(^|[ {+(=.])((?:tUI|tLog|t|tMark)\s*\(\s*(?:\/\*(.*?)\*\/)?\s*)(["'])((?:(?!\4)[^\\]|\\.)*)(\4)/;
|
||||
const transMatcher = /(\/\*(.*?)\*\/\s*)?(\<Trans[ >][\s\S]*?\<\/Trans\>)/;
|
||||
|
||||
const jsxParser = acorn.Parser.extend(acornJsx());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue