# @types/react-redux-i18n

> TypeScript definitions for react-redux-i18n

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

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.16 |
| Published | 2023-11-07 |
| First published | 2016-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [redux](https://npm.io/package/redux.md) ^3.7.2
- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 0.0.16 (latest) — 2023-11-07
- 0.0.13 (ts3.7) — 2021-10-21
- 0.0.12 (ts3.6) — 2021-07-08
- 0.0.11 (ts2.8) — 2018-08-06
- 0.0.10 (ts2.6) — 2018-06-23
- 0.0.7 (ts2.3) — 2017-10-25
- 0.0.3 (ts2.1) — 2017-01-23
- 0.0.2 (ts2.0) — 2016-11-29
- 0.0.15 — 2023-10-18
- 0.0.14 — 2023-09-27
- 0.0.9 — 2018-05-08
- 0.0.8 — 2018-02-12
- 0.0.6 — 2017-08-31
- 0.0.5 — 2017-08-31
- 0.0.4 — 2017-06-23
- … 2 more at https://npm.io/package/@types/react-redux-i18n/versions

## README

# Installation
> `npm install --save @types/react-redux-i18n`

# Summary
This package contains type definitions for react-redux-i18n (https://github.com/zoover/react-redux-i18n).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-redux-i18n.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-redux-i18n/index.d.ts)
````ts
declare module "react-redux-i18n" {
    import * as react from "react";
    import * as redux from "redux";

    /**
     * Helper methods
     */
    interface I18n {
        t(code: string, options?: any): string;
        l(timestamp: number, options?: any): string;
    }
    export var I18n: I18n;

    type SubTranslationObject = string | { [key: string]: SubTranslationObject };

    type TranslationObjects = { [lang: string]: SubTranslationObject };

    type DispatchCallback<S extends redux.Action> = {
        (dispatch?: redux.Dispatch<S>, getState?: () => S): any;
    };

    type I18nState = {
        translations: TranslationObjects;
        locale: string;
    };

    type TranslateProps = {
        className?: string | undefined;
        dangerousHTML?: boolean | undefined;
        style?: React.CSSProperties | undefined;
        tag?: React.ElementType | undefined;
        value: string;
        [prop: string]: any;
    };

    type LocalizeProps = {
        className?: string | undefined;
        dangerousHTML?: boolean | undefined;
        dateFormat?: string | undefined;
        options?: Object | undefined;
        style?: React.CSSProperties | undefined;
        tag?: React.ElementType | undefined;
        value: string | number | object;
    };

    /**
     * React components
     */
    export class Translate extends react.Component<TranslateProps> {}
    export class Localize extends react.Component<LocalizeProps> {}

    /**
     * Reducer
     */
    export function i18nReducer(state?: any, options?: any): redux.Reducer<I18nState>;

    /**
     * Reducer init
     */
    export function syncTranslationWithStore(store: redux.Store<any>): void;

    /**
     *  Redux Actions
     */
    export function loadTranslations(translationsObject: TranslationObjects): DispatchCallback<any>;

    export function setLocale(locale: string): DispatchCallback<any>;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [redux](https://npmjs.com/package/redux)

# Credits
These definitions were written by [Clément Devos](https://github.com/clementdevos).

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