alanshaw / alanshaw/xgettext-regex
Cannot handle i18n function that receives multiple arguments
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 4
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.