Updates
This commit is contained in:
parent
88eef42b01
commit
a72fe3a991
2 changed files with 2 additions and 4 deletions
|
@ -578,9 +578,6 @@ export function getEditForm(owner, typeKey, prefix = '') {
|
|||
{owner.templateTypes[typeKey].getHTMLEditor(owner)}
|
||||
|
||||
<ACEEditor id={prefix + 'text'} height="400px" mode="text" label={t('Template content (plain text)')} help={<Trans>To extract the text from HTML click <ActionLink onClickAsync={::owner.extractPlainText}>here</ActionLink>. Please note that your existing plaintext in the field above will be overwritten. This feature uses the <a href="http://premailer.dialect.ca/api">Premailer API</a>, a third party service. Their Terms of Service and Privacy Policy apply.</Trans>}/>
|
||||
/*prefix:helpers*/<Trans i18nKey="userMessagesUnread" count={count}>
|
||||
Hello <strong title={t('nameTitle')}>{{name}}</strong>, you have {{count}} unread message. <Link to="/msgs">Go to messages</Link>.
|
||||
</Trans>
|
||||
</div>;
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ function parseSpec(specStr) {
|
|||
}
|
||||
|
||||
// see http://blog.stevenlevithan.com/archives/match-quoted-string
|
||||
const tMatcher = /(^|[ {+(=])((?:tUI|tLog|t|tMark)\s*\(\s*(?:\/\*(.*?)\*\/)?\s*)(["'])((?:(?!\1)[^\\]|\\.)*)(\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());
|
||||
|
@ -277,6 +277,7 @@ function run() {
|
|||
fs.writeFileSync(localeFile, JSON.stringify(resDict, null, 2));
|
||||
}
|
||||
}
|
||||
processFile('../client/src/templates/helpers.js');
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
|
|
Loading…
Reference in a new issue