Gathering detailed insights and metrics for ttag-cli
Gathering detailed insights and metrics for ttag-cli
Gathering detailed insights and metrics for ttag-cli
Gathering detailed insights and metrics for ttag-cli
@wiredcraft/ttag-cli
Based on ttag-cli#1.7.28
ttag
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)
babel-plugin-ttag
[![travis](https://api.travis-ci.org/ttag-org/babel-plugin-ttag.svg)](https://travis-ci.org/ttag-org) [![codecov](https://codecov.io/gh/ttag-org/babel-plugin-ttag/branch/master/graph/badge.svg)](https://codecov.io/gh/ttag-org/babel-plugin-ttag)
eslint-plugin-ttag
This plugin helps you to use ttag tags and functions properly
npm install ttag-cli
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
34 Stars
313 Commits
32 Forks
8 Watching
5 Branches
18 Contributors
Updated on 10 Oct 2024
TypeScript (98.92%)
JavaScript (1.08%)
Cumulative downloads
Total Downloads
Last day
-0.4%
3,219
Compared to previous day
Last week
4.9%
15,499
Compared to previous week
Last month
17.9%
67,186
Compared to previous month
Last year
40.2%
628,706
Compared to previous year
37
26
:warning: This project was previously named
c-3po-cli
. Some of the talks, presentations, and documentation may reference it with both names.
Command line utility for ttag translation library. Works out of the box with js, ts, jsx, tsx, vue, svelte, files.
1npm install ttag-cli 2# or global 3npm install -g ttag-cli
ttag extract some.js
extract [output|lang] <src...>
will extract translations to .pot file
--output -o result file with translations (.pot) (default: translations.pot)
--lang -l sets default lang (ISO format) (default: en)
--discover string overrides babel-plugi-ttag setting - https://ttag.js.org/docs/plugin-api.html#configdiscover. Can be used to discover ttag functions without explicit import. Only known ttag functions can be used as params (t, jt, ngettext, gettext, _)
--numberedExpressions boolean overrides babel-plugin-ttag setting - https://ttag.js.org/docs/plugin-api.html#confignumberedexpressions. Refer to the doc for the details.
--extractLocation string - 'full' | 'file' | 'never' - https://ttag.js.org/docs/plugin-api.html#configextractlocation. Is used to format location comments in the .po file.
--sortByMsgid boolean. Will sort output in alphabetically by msgid. https://ttag.js.org/docs/plugin-api.html#configsortbymsgid
check [lang] <pofile> <src...>
will check if all translations are present in .po file
--lang -l sets default lang (ISO format) (default: en)
--discover string overrides babel-plugi-ttag setting - https://ttag.js.org/docs/plugin-api.html#configdiscover. Can be used to discover ttag functions without explicit import. Only known ttag functions can be used as params (t, jt, ngettext, gettext, _)
--numberedExpressions boolean overrides babel-plugin-ttag setting - https://ttag.js.org/docs/plugin-api.html#confignumberedexpressions. Refer to the doc for the details.
merge <path...>
will merge two or more po(t) files together using first non-empty msgstr and header from left-most file
translate <path> [args]
will open interactive prompt to translate all msgids with empty msgstr in cli
--output -o result file with translations (.po) (default: translated.po)
stats <path>
will display various pofile statistics(encoding, plurals, translated, fuzzyness)
filter <path> [args]
will filter pofile by entry attributes(fuzzy, obsolete, (un)translated)
--fuzzy -f result file with fuzzy messages (.po) (default: false)
--no-fuzzy -nf result file without fuzzy messages (.po) (default: false)
--translated -t result file with translations (.po) (default: false)
--not-translated -nt result file without translations (.po) (default: false)
--reference -r a regexp to match references against (default: )
ttag filter -nt small.po
msgid "test"
msgstr ""
init <lang> <filename>
will create an empty .po file with all necessary headers for the locale
--lang sets default locale (ISO format) (default: en)
--filename path to the .po file
update [opts] <pofile> <src..>
will update existing po file. Add/remove new translations
--lang sets default locale (ISO format) (default: en)
--pofile path to .po file with translations
--src path to source files/directories
--discover string overrides babel-plugi-ttag setting - https://ttag.js.org/docs/plugin-api.html#configdiscover. Can be used to discover ttag functions without explicit import. Only known ttag functions can be used as params (t, jt, ngettext, gettext, _)
--numberedExpressions boolean overrides babel-plugin-ttag setting - https://ttag.js.org/docs/plugin-api.html#confignumberedexpressions. Refer to the doc for the details.
--extractLocation string - 'full' | 'file' | 'never' - https://ttag.js.org/docs/plugin-api.html#configextractlocation. Is used to format location comments in the .po file.
--sortByMsgid boolean. Will sort output in alphabetically by msgid. https://ttag.js.org/docs/plugin-api.html#configsortbymsgid
--foldLength number. Output .po file line width.
replace [options] <pofile> <out> <path>
will replace all strings with translations from the .po file
--discover string overrides babel-plugi-ttag setting - https://ttag.js.org/docs/plugin-api.html#configdiscover. Can be used to discover ttag functions without explicit import. Only known ttag functions can be used as params (t, jt, ngettext, gettext, _)
--numberedExpressions boolean overrides babel-plugin-ttag setting - https://ttag.js.org/docs/plugin-api.html#confignumberedexpressions. Refer to the doc for the details.
color <pofile>
will output po(t)file with pretty colors on, combine with | less -r
spell <pofile> [locale]
will spellcheck po file messages with given locale, locale can be autodetected from pofile
validate <pofile>
will validate js template strings (${x}
) in messages and translations and against each other
web <pofile>
will open pofile in web editor
po2json <pofile> [args]
will parse and output po file as loadable JSON
--pretty -p pretty print js (default: false)
--nostrip --n do not strip comments/headers (default: false)
--format sets the output JSON format (compact is much smaller)
[choices: "compact", "verbose"] [default: "verbose"]
Please support ttag-cli development by sending issues/PRs.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More