Gathering detailed insights and metrics for ttag
Gathering detailed insights and metrics for ttag
Gathering detailed insights and metrics for ttag
Gathering detailed insights and metrics for ttag
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)
ttag-cli
> :warning: This project [was previously named `c-3po-cli`](https://github.com/ttag-org/ttag/issues/105). > Some of the talks, presentations, and documentation _may_ reference it with both names.
eslint-plugin-ttag
This plugin helps you to use ttag tags and functions properly
ttag-webpack-plugin
> This plugin is an experimental feature, if something goes wrong, still you can use `babel-plugin-ttag` to setup your localization workflow. Follow the doc - https://ttag.js.org/blog/2018/09/05/hardcore-webpack-setup.html
npm install ttag
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
346 Stars
497 Commits
44 Forks
14 Watching
12 Branches
20 Contributors
Updated on 12 Nov 2024
TypeScript (72.22%)
JavaScript (27.21%)
CSS (0.57%)
Cumulative downloads
Total Downloads
Last day
39.5%
6,898
Compared to previous day
Last week
101%
46,680
Compared to previous week
Last month
31.9%
135,365
Compared to previous month
Last year
58.9%
1,109,079
Compared to previous year
2
25
Modern javascript i18n localization library based on ES6 tagged templates and the good old GNU gettext
1import { t, ngettext, msgid } from 'ttag'; 2 3// formatted strings 4const name = 'Mike'; 5const helloMike = t`Hello ${name}`; 6 7// plurals (works for en locale out of the box) 8const n = 5; 9const msg = ngettext(msgid`${n} task left`, `${n} tasks left`, n);
1npm install --save ttag
You may also need to install ttag-cli for po
files manipulation.
ttag cli - https://github.com/ttag-org/ttag-cli
1npm install --save-dev ttag-cli
https://unpkg.com/ttag/dist/ttag.min.js
This project is designed to work in pair with babel-plugin-ttag.
But you can also play with it without transpilation.
Give a ⭐️ if this project helped you!
This project is licensed under the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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
69 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