Closed OrKoN closed 4 years ago
you version is published v1.7.22
, so you can try to use the separate ttag instance. Let me know if that works for you!
@OrKoN cool! should that work with ttag-cli already?
Hi @OrKoN. ttag-cli
extracts translations with babel-plugin-ttag
. By default it will extract t
if you are using ttag
import. But there exists is --discover
argument (https://github.com/ttag-org/ttag-cli#update-opts-pofile-src). It will discover all t
usages.
Here is an example:
console.log(t`hello`)
ttag update --discover=t some.po counter.js
So, you can pass discover opts to extract translations. Will try to investigate and maybe we should add an ability to discover member expressions such as:
(req, res) => {
req.ttag.t`hello`;
}
Codecov Report
98.94% <99.12%> (+0.74%)
Continue to review full report at Codecov.