dfx-translate
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "dfx-translate", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"private": false, | ||
@@ -33,17 +33,30 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@angular/common": "4 - 12", | ||
"@angular/core": "4 - 12", | ||
"rxjs": "2 - 6", | ||
"node-fetch": "^2.6.1" | ||
"@angular/common": "4 - 13", | ||
"@angular/core": "4 - 13", | ||
"rxjs": "2 - 7", | ||
"node-fetch": "^2.6.6" | ||
}, | ||
"main": "bundles/dfx-translate.umd.js", | ||
"module": "fesm2015/dfx-translate.js", | ||
"es2015": "fesm2015/dfx-translate.js", | ||
"esm2015": "esm2015/dfx-translate.js", | ||
"fesm2015": "fesm2015/dfx-translate.js", | ||
"module": "fesm2015/dfx-translate.mjs", | ||
"es2020": "fesm2020/dfx-translate.mjs", | ||
"esm2020": "esm2020/dfx-translate.mjs", | ||
"fesm2020": "fesm2020/dfx-translate.mjs", | ||
"fesm2015": "fesm2015/dfx-translate.mjs", | ||
"typings": "dfx-translate.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./dfx-translate.d.ts", | ||
"esm2020": "./esm2020/dfx-translate.mjs", | ||
"es2020": "./fesm2020/dfx-translate.mjs", | ||
"es2015": "./fesm2015/dfx-translate.mjs", | ||
"node": "./fesm2015/dfx-translate.mjs", | ||
"default": "./fesm2020/dfx-translate.mjs" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.0" | ||
} | ||
} |
# dfx-translate | ||
A simple translation package for Angular 4 - 12. | ||
[![NPM](https://nodei.co/npm/dfx-translate.png)](https://npmjs.org/package/dfx-translate) | ||
### Features | ||
@@ -8,4 +10,12 @@ * inline html translations with pipelines | ||
* an easy-to-use json structure | ||
* auto-translation feature via https://github.com/LibreTranslate/LibreTranslate API integration | ||
* auto-translation feature via [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) API integration | ||
### Information | ||
- [Supported languages for auto-translation](#supported-languages) | ||
- [Development notes](#development) | ||
- [Deployment notes](#deployment-notes) | ||
- [Project website](https://datepoll.org) | ||
- created with [Angular](https://angular.io) | ||
, [used libraries](https://gitlab.com/DatePoll/common/dfx-translate/-/blob/master/package.json) | ||
## Setup | ||
@@ -40,3 +50,4 @@ ### Installation | ||
``` | ||
Note: You **do not** have to translate all strings if you are using the **auto-translate feature**. | ||
Note: You **do not** have to translate all strings if you are using | ||
the [auto-translate feature](#auto-deep-learning-translation). | ||
@@ -48,3 +59,3 @@ #### Auto translation | ||
Read more below; | ||
[Read more](#auto-deep-learning-translation) | ||
@@ -91,2 +102,3 @@ ### Registration in root (app) module | ||
``` | ||
## Usage | ||
@@ -161,3 +173,3 @@ ### Switching languages | ||
It's possible to translate not manual translated strings via | ||
https://github.com/LibreTranslate/LibreTranslate API. LibreTranslate is an open-source, self-hostable | ||
[LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) API. LibreTranslate is an open-source, self-hostable | ||
machine-translation service. | ||
@@ -207,3 +219,3 @@ | ||
* `es_auto.json` - additional language, auto-translated missing strings of `es.json` compared to the primary language | ||
* `fr_auto.json` - additional language, completly auto-translated containing all translations | ||
* `fr_auto.json` - additional language, completely auto-translated containing all translations | ||
@@ -232,3 +244,3 @@ ### Simplifying | ||
## Development | ||
Everything important in this library is located in `projects/dfx-translate`, thats the "real" library. (following | ||
Everything important in this library is located in `projects/dfx-translate`, that's the "real" library. (following | ||
commands still have to be executed at the root level) | ||
@@ -250,1 +262,17 @@ | ||
``` | ||
## Deployment notes | ||
dfx-translate deployments are managed | ||
via [.gitlab-ci](https://gitlab.com/DatePoll/common/dfx-translate/-/blob/development/.gitlab-ci.yml) | ||
All builds are uploaded | ||
to [releases.datepoll.org/common/dfx-translate](https://releases.datepoll.org/common/dfx-translate) | ||
### Development builds | ||
Commits to the [development](https://gitlab.com/DatePoll/common/dfx-translate/-/tree/development) branch create a dev | ||
build downloadable via [this link](https://releases.datepoll.org/common/dfx-translate/dfx-translate-dev.zip). | ||
### Production builds | ||
Tags create a release build downloadable | ||
via [this link](https://releases.datepoll.org/common/dfx-translate/dfx-translate-latest.zip). Additionally, a versioned | ||
zip is uploaded and the package is published to [npm](https://www.npmjs.com/package/dfx-translate). |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
271
78007
770
+ Added@angular/common@13.4.0(transitive)
+ Added@angular/core@13.4.0(transitive)
+ Addedrxjs@7.8.1(transitive)
- Removed@angular/common@12.2.17(transitive)
- Removed@angular/core@12.2.17(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.3.0