nestjs-i18n
Advanced tools
Comparing version 10.4.0 to 10.4.5
@@ -34,2 +34,5 @@ "use strict"; | ||
]); | ||
nodes.forEach((node) => { | ||
ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, ' prettier-ignore ', true); | ||
}); | ||
return printer.printList(ts.ListFormat.MultiLine, nodes, sourceFile); | ||
@@ -40,3 +43,4 @@ }; | ||
return `/* DO NOT EDIT, file generated by nestjs-i18n */ | ||
/* eslint-disable */ | ||
${code}`; | ||
@@ -43,0 +47,0 @@ }; |
{ | ||
"name": "nestjs-i18n", | ||
"version": "10.4.0", | ||
"version": "10.4.5", | ||
"homepage": "https://nestjs-i18n.com", | ||
@@ -5,0 +5,0 @@ "description": "The i18n module for Nest.", |
@@ -45,3 +45,3 @@ <p align="center"> | ||
- from V8.0.0 on we changed the internal `18n-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](https://nestjs-i18n.com/concepts/resolver). Instead of providing the `req` in the `resolve` method, change this to take the `ExecutionContext` as argument. | ||
- 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](https://nestjs-i18n.com/concepts/resolver). Instead of providing the `req` in the `resolve` method, change this to take the `ExecutionContext` as argument. | ||
@@ -48,0 +48,0 @@ - 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](https://nestjs-i18n.com/quick-start). 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')`; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
338332
2440