fix: add extract-template for po-gettext format#1089
Conversation
The previous implemented of `lingui extract-template` command does not work with po-gettext format because of hard-coded `po`. This change support any further `po-xyz` format in the future.
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/lingui-js/js-lingui/62Jjko69EQqXxVJJ1HNPoufEDwAx |
Codecov Report
@@ Coverage Diff @@
## main #1089 +/- ##
==========================================
- Coverage 82.91% 82.28% -0.63%
==========================================
Files 54 56 +2
Lines 1639 1677 +38
Branches 448 458 +10
==========================================
+ Hits 1359 1380 +21
- Misses 163 173 +10
- Partials 117 124 +7
Continue to review full report at Codecov.
|
|
LGTM @truong-hua, really appreciated the contribution. Going to merge it right now, once the ci passes. And I'll release a new version tomorrow, I want to improve some usability with the new tool remote-loader. |
The previous implemented of
lingui extract-templatecommand does not work with po-gettext format because of hard-codedpo. This change support any furtherpo-xyzformat in the future.