Installations
npm install vue3-gettext
Releases
v4.0.0-alpha.8
Published on 30 Aug 2024
v4.0.0-alpha.7
Published on 21 Aug 2024
v4.0.0-alpha.6
Published on 21 Aug 2024
v4.0.0-alpha.5
Published on 08 Aug 2024
v4.0.0-alpha.4
Published on 08 Aug 2024
v4.0.0-alpha.2
Published on 07 Aug 2024
Developer
Developer Guide
Module System
CommonJS, ESM
Min. Node Version
>= 18.0.0
Typescript Support
Yes
Node Version
20.14.0
NPM Version
10.7.0
Statistics
76 Stars
129 Commits
25 Forks
8 Watching
5 Branches
13 Contributors
Updated on 24 Nov 2024
Bundle Size
8.38 kB
Minified
3.08 kB
Minified + Gzipped
Languages
TypeScript (84.86%)
Vue (8.49%)
JavaScript (6.31%)
HTML (0.28%)
CSS (0.06%)
Total Downloads
Cumulative downloads
Total Downloads
579,954
Last day
37.2%
2,130
Compared to previous day
Last week
1.1%
7,745
Compared to previous week
Last month
15.3%
29,748
Compared to previous month
Last year
24.9%
285,435
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
9
Peer Dependencies
2
Dev Dependencies
29
Vue 3 Gettext 💬
Translate Vue 3 applications with gettext.
Getting started | Demo | Documentation | ä¸æ–‡
Basic usage
In templates:
1<span> 2 {{ $gettext("I'm %{age} years old!", { age: 32 }) }} 3</span>
In code:
1const { $gettext } = useGettext(); 2 3console.log($gettext("Hello World!"));
Features
- simple, ergonomic API
- reactive translations in Vue templates and TypeScript/JavaScript code
- CLI to automatically extract messages from code files
- support for pluralization and message contexts
Contribute
Please make sure your code is properly formatted (the project contains a prettier
config) and all the tests run successfully (npm run test
) when opening a pull request.
Please specify clearly what you changed and why.
Credits
This plugin relies heavily on the work of the original vue-gettext
.
License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pages-deploy.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/jshmrtn/vue3-gettext/pages-deploy.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pages-deploy.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/jshmrtn/vue3-gettext/pages-deploy.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/jshmrtn/vue3-gettext/pull-request.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/jshmrtn/vue3-gettext/pull-request.yml/master?enable=pin
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 2 out of 2 npmCommand dependencies pinned
Reason
6 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-96g7-g7g9-jxw8
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
Reason
Found 9/30 approved changesets -- score normalized to 3
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
- Warn: no topLevel permission defined: .github/workflows/pages-deploy.yml:1
- Warn: no topLevel permission defined: .github/workflows/pull-request.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 9 are checked with a SAST tool
Score
3.8
/10
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 MoreOther packages similar to vue3-gettext
node-gettext
A JavaScript implementation of gettext, a localization framework
gettext-parser
Parse and compile gettext po and mo files to/from json, nothing more, nothing less
gettext-extractor
Gettext extractor for JavaScript, TypeScript, JSX and HTML
jed
Gettext Style i18n for Modern JavaScript Apps