alanshaw / alanshaw/xgettext-regex
Cannot handle i18n function that receives multiple arguments
オープン
- 主要言語
- JavaScript
- スター
- 4
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Example: For this code snippet
```
${i18n.tr('Lorem {0}. Dolor sit amet.', 'Ipsum')}
```
it outputs the string `Lorem {0}. Dolor sit amet.', 'Ipsum`, ignoring the actual quotes.
(I used the command `node xgettext-regex.js src -f "(?:i18n.tr|I18n.marktr|i18n.trn)" -o po/keys.pot`)
----
While this example is not really practical, the regex fails to match anything if additional arguments besides string literals are provided. And for pluralize calls like `${i18n.trn('Blubber', 'Blubbers', 7)}`, both string literals should be matched.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。