Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
test: public access npm
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-bertoncelli committed Jul 29, 2021
1 parent 2c8711e commit ae7be3a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,25 @@ Translate your JSON file with this tool!

This tool requires [IBM Cloud Language Translator](https://cloud.ibm.com/apidocs/language-translator?code=try#introduction) subscription in order to translate automatically your keys. It's free and very easy to use!

- [Installation](#installation)
- [Get started](#get-started)
- [API](#api)
- [More customization](#more-customization)

## Installation

Since this package is not on the ufficial NPM registry you should add the github npm registry for my account prefix: create a .npmrc file inside your destination project and insert this line

```text
@giovanni-bertoncelli:registry=https://npm.pkg.github.com
```

and then install the package:

```bash
npm install [-g] @giovanni-bertoncelli/json-translator
```

## Get started

In order to translate a JSON language file:
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "1.0.0",
"description": "Translate your JSON file with this tool!",
"main": "index.js",
"publishConfig": {
"registry": "https://npm.pkg.github.com",
"access": "public"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit ae7be3a

Please sign in to comment.