# @types/i18n-abide

> TypeScript definitions for i18n-abide

Latest version **0.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/i18n-abide
pnpm add @types/i18n-abide
yarn add @types/i18n-abide
bun add @types/i18n-abide
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2023-11-07 |
| First published | 2018-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51420 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/i18n-abide
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18n-abide
- npm.io page: https://npm.io/package/@types/i18n-abide

## Dependencies (1)

- [@types/express](https://npm.io/package/@types/express.md) *

## Recent versions

- 0.0.5 (latest) — 2023-11-07
- 0.0.2 (ts3.6) — 2021-07-08
- 0.0.1 (ts2.3) — 2019-08-19
- 0.0.0 (ts2.2) — 2018-10-18
- 0.0.4 — 2023-10-18
- 0.0.3 — 2023-10-08

## README

# Installation
> `npm install --save @types/i18n-abide`

# Summary
This package contains type definitions for i18n-abide (https://github.com/mozilla/i18n-abide).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18n-abide.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18n-abide/index.d.ts)
````ts
import { RequestHandler } from "express";

export function abide(options?: AbideOptions): RequestHandler;
export function parseAcceptLanguage(header?: string): Array<{ lang: string; quality: number }>;
export function bestLanguage(
    languages: Array<{ lang: string; quality: number }>,
    supported_languages: string[],
    defaultLanguage: string,
): string;
export function localeFrom(language?: string): string;
export function languageFrom(locale?: string): string;
export function normalizeLanguage(language?: string): string;
export function normalizeLocale(locale?: string): string;
export function format(fmt: string, obj?: any, named?: boolean): string;
export function getLocales(): string[];

export interface AbideOptions {
    gettext_alias?: string | undefined;
    supported_languages?: string[] | undefined;
    default_lang?: string | undefined;
    debug_lang?: string | undefined;
    disable_locale_check?: boolean | undefined;
    translation_directory?: string | undefined;
    logger?: { warn(msg: string): void; error(msg: string): void } | undefined;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express)

# Credits
These definitions were written by [Steven Bell](https://github.com/smbell).

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