Gathering detailed insights and metrics for nestjs-i18n
Gathering detailed insights and metrics for nestjs-i18n
Gathering detailed insights and metrics for nestjs-i18n
Gathering detailed insights and metrics for nestjs-i18n
nestjs-i18n-v2
[![Build Status](https://travis-ci.org/ToonvanStrijp/nestjs-i18n.svg?branch=master)](https://travis-ci.org/ToonvanStrijp/nestjs-i18n) [![Coverage Status](https://coveralls.io/repos/github/ToonvanStrijp/nestjs-i18n/badge.svg?branch=master)](https://coveral
nestjs-i18n-chiper
i18n chiper for nestjs
@softkit/i18n
This library is a simple wrapper based on [nestjs-i18n](https://nestjs-i18n.com/)
@nestjs/mapped-types
Nest - modern, fast, powerful node.js web framework (@mapped-types)
npm install nestjs-i18n
58.2
Supply Chain
83.1
Quality
86.8
Maintenance
50
Vulnerability
98.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
656 Stars
895 Commits
113 Forks
4 Watching
4 Branches
57 Contributors
Updated on 19 Nov 2024
TypeScript (97.31%)
JavaScript (2.56%)
EJS (0.05%)
Pug (0.03%)
Handlebars (0.02%)
CSS (0.02%)
Cumulative downloads
Total Downloads
Last day
-2.7%
28,131
Compared to previous day
Last week
-0.8%
144,245
Compared to previous week
Last month
12.1%
611,885
Compared to previous month
Last year
40.8%
6,188,973
Compared to previous year
4
50
The i18n library for nestjs. It makes working with languages in your nestjs project easy. Everything is made to be highly configurable. You can write and plug-in your own language resolvers or loaders.
nestjs-i18n comes with a bunch of tools to help add multiple language support to your project.
To get started follow the quickstart, or take a look at the docs.
nestjs-i18n
is MIT licensed.
from V10.0.0 on we removed the I18nRequestScopeService
. This because we now have async_hooks
support. This allows you to get the current I18nContext
by doing I18nContext.current()
.
from V9.0.0 on we renamed the parser
property to loader
. The translate
function no longer returns a promise 🎉. A lot of new features and new docs, see nestjs-i18n.com.
from V8.0.0 on we changed the internal I18n-middleware
for an interceptor
this way we can provide the ExecutionContext
so that nestjs-i18n
works on different protocols as well, such as gRPC and WebSockets. This contains one breaking change. It only applies to your code if you've made a custom resolver
. To resolve this breaking change take a look at this example. Instead of providing the req
in the resolve
method, change this to take the ExecutionContext
as argument.
from V6.0.0 on we implemented the I18nParser
, by using this we can easily support different formats other than JSON. To migrate to this change look at the quickstart. There are some changes in the declaration of the I18nModule
. Note: the translate
function returns a Promise<string>
. So you need to call it using await i18n.translate('HELLO')
;
from V4.0.0 on we changed the signature of the translate
function, the language
is now optional, if no language
is given it'll fallback to the fallbackLanguage
.
from V3.0.0 on we load translations based on their directory name instead of file name. Change your translations files to the structure found in the quickstart.
No vulnerabilities found.
Reason
20 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 11/17 approved changesets -- score normalized to 6
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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