# @repit/q-localize

> R/Q Middleware for AWS Lambda localization.

Latest version **0.0.1** (published 2017-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @repit/q-localize
pnpm add @repit/q-localize
yarn add @repit/q-localize
bun add @repit/q-localize
```

## 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.0.1 |
| Published | 2017-12-27 |
| First published | 2017-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ion Suman |
| Maintainers | sumanion |

## Links

- npm: https://www.npmjs.com/package/@repit/q-localize
- npm.io page: https://npm.io/package/@repit/q-localize

## Dependencies (1)

- [@repit/lambda-localize](https://npm.io/package/@repit/lambda-localize.md) ^1.0.6

## Recent versions

- 0.0.1 (latest) — 2017-12-27

## README

# Repit Q-Localize

R/Q Middleware for AWS Lambda localization.

## About

This module is a wrapper for [@repit/lambda-localize](https://www.npmjs.com/package/@repit/lambda-localize).

## Installation

```bash
$ npm install @repit/q-localize --save
```

## Requirements

- [@repit/q-locales](https://www.npmjs.com/package/@repit/q-locales)
- [@repit/q-cache](https://www.npmjs.com/package/@repit/q-cache)

## Usage

```js
'use strict'

const q = require('@repit/q')()
const localize = require('@repit/q-localize')

q(localize({
  // Use caching.
  cache: true // Default: false
}))

q((req, res) => {
  // Send a success message.
  res.localize('Message:UserCreated')

  // Send an error message.
  res.code(400).localize('Error:InvalidUserName')
})

exports.handler = q.handler
```

## License

MIT

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