# ms-localization

> Localization microservice for the Vertt app

Latest version **0.2.11** (published 2023-10-23) · 0 weekly downloads

## Install

```sh
npm install ms-localization
pnpm add ms-localization
yarn add ms-localization
bun add ms-localization
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.11 |
| Published | 2023-10-23 |
| First published | 2023-10-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 22 |
| Unpacked size | 64 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | slavko_s |

## Links

- npm: https://www.npmjs.com/package/ms-localization
- npm.io page: https://npm.io/package/ms-localization

## Dependencies (22)

- [ejs](https://npm.io/package/ejs.md) ^2.6.1
- [uuid](https://npm.io/package/uuid.md) ^3.2.1
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.2
- [aws-sdk](https://npm.io/package/aws-sdk.md) 2.382.0
- [express](https://npm.io/package/express.md) ^4.16.4
- [winston](https://npm.io/package/winston.md) ^3.1.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [body-parser](https://npm.io/package/body-parser.md) ^1.15.2
- [@vertt/logger](https://npm.io/package/@vertt/logger.md) ^1.1.0
- [simple-router](https://npm.io/package/simple-router.md) ^0.4.2
- [package-reader](https://npm.io/package/package-reader.md) ^1.0.2
- [@microtica/auth](https://npm.io/package/@microtica/auth.md) ^1.4.9
- [@microtica/utils](https://npm.io/package/@microtica/utils.md) 1.3.2
- [http-status-codes](https://npm.io/package/http-status-codes.md) ^1.3.0
- [middleware-tester](https://npm.io/package/middleware-tester.md) ^0.7.0
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.10
- [@microtica/database](https://npm.io/package/@microtica/database.md) ^2.3.0
- [@vertt/assert-env-config](https://npm.io/package/@vertt/assert-env-config.md) 0.0.3
- [@microtica/service-runner](https://npm.io/package/@microtica/service-runner.md) ^2.3.1
- [@vertt/assert-client-type](https://npm.io/package/@vertt/assert-client-type.md) ^1.1.2
- [@microtica/service-wrapper](https://npm.io/package/@microtica/service-wrapper.md) ^0.2.1

## Recent versions

- 0.2.11 (latest) — 2023-10-23

## README

# Localization microservice

### Starting the service locally

1. Make sure there is a `env-files` directory on the same level as this directory
- The `env-files` directory should contain files with env variables for all services
2. Create a `.env` file in the root of the project and add all environment variables
- Some of the services have a package `@vertt/assert-env-config` installed. If used, the function `assertEnvConfig(config)` from the package checks whether all env variables are initialized. If this condition is not met, it throws an error and the service is unreachable. The `assertEnvConfig(config)` function is called in the `index.ts` file. If you want to start the service without initializing all env variables, just remove this function from the code.
- Mandatory environment variables are: 
  - `PORT` - To initialize a unique port
  - `databaseUrl` - To setup a connection to the database
  - `headerTokenMicroservice` - To be able to communicate with other services
  - `npmToken` - To log in to npm with the private user who is owner of the private `vertt`
2. Run the `init-npm-token` script
- This would authorize your local machine to access Vertt's private NPM repository and you would be able to install the private `@vertt/*` packages
- Verify the NPM access by running `npm install`
3. Start the service with `npm run start-local`

---
_Source: https://npm.io/package/ms-localization · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
