You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would be nice if we could pass in a glob to the update script (or any of them that require the src dir).
for example: ttag update i18n/*.po src/**/!(__tests__)/*.js to have it extract from every js file (not located in a __tests__ directory and then have it update every language.
is this already possible? couldn't find a way to have it exclude test files etc.
Reacted by Oscar Bolmsten, Daniel García, Kenneth Cho, Alain Perkaz and Juraj Šimon
This is something I ran into as well. Would want to extract strings into separate .po files, being able to exclude a directory would solve it perfectly!
Hi all, I wonder if anyone figured out a workaround...
I've been using ttag for over a year now in a nested project:
package.json
node_modules/
src/
src/Foo.js // ← want to get translations from files like this
src/__scripts__/deploy/
src/__scripts__/deploy/package.json
src/__scripts__/deploy/src/index.js
src/__scripts__/deploy/node_modules/
src/__scripts__/deploy/node_modules/xmlbuilder/typings/index.d.ts // ← now breaks `ttag update`
This set up used to work for a long while.
Recently, specifically ttag update got broken with a cryptic-ish error:
src/__scripts__/deploy/index.jsSyntaxError: /global-path-to/src/__scripts__/deploy/node_modules/xmlbuilder/typings/index.d.ts: `export =` is not supported by @babel/plugin-transform-typescript
Please consider using `export <value>;`.
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6 |
> 7 | export = xmlbuilder;
| ^^^^^^^^^^^^^^^^^^^^
Thus, I wonder, is there a way to tell tta-cli to ignore some submodule?
Also, if what I'm doing is clearly a bad idea, please tell why :D
PRs are most welcome.
My 2c: solutioning, that is figuring out the path forward that feels right in the ecosystem, which may not be the original request, is welcome too.
@dimaqq I got a PR up and running with an implementation proposal.
Let me know what you think; I am very keen on adding this capability into the library 🙂
Activity
AlexMost commentedon Jul 30, 2019
Hi @benmonro! Have not tried the exclude case. Agree that we should support it. Will try to investigate and report about the results here.
oscar-b commentedon Sep 3, 2019
This is something I ran into as well. Would want to extract strings into separate .po files, being able to exclude a directory would solve it perfectly!
benmonro commentedon Sep 3, 2019
@AlexMost any update on this?
AlexMost commentedon Sep 4, 2019
Hi @benmonro and @oscar-b. Haven't chance to look at it, but will try to find some time for this on this week.
oscar-b commentedon Oct 17, 2019
@AlexMost Sorry to be a pita, but any progress? :)
dimaqq commentedon Jul 17, 2020
Hi all, I wonder if anyone figured out a workaround...
I've been using
ttagfor over a year now in a nested project:This set up used to work for a long while.
Recently, specifically
ttag updategot broken with a cryptic-ish error:Thus, I wonder, is there a way to tell
tta-clito ignore some submodule?Also, if what I'm doing is clearly a bad idea, please tell why :D
aperkaz commentedon Jan 2, 2026
Is this request open to contributions?
We need it in one of our (monorepo) projects, and I am happy to contribute 🙂
dimaqq commentedon Jan 2, 2026
PRs are most welcome.
My 2c: solutioning, that is figuring out the path forward that feels right in the ecosystem, which may not be the original request, is welcome too.
aperkaz commentedon Jan 6, 2026
@dimaqq I got a PR up and running with an implementation proposal.
Let me know what you think; I am very keen on adding this capability into the library 🙂
aperkaz commentedon May 28, 2026
@dimaqq I think this issue can be closed, as it is part of
ttag-cli@1.12.0dimaqq commentedon May 28, 2026
thanks!