Socket
Socket
Sign inDemoInstall

react-i18next

Package Overview
Dependencies
Maintainers
2
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18next - npm Package Compare versions

Comparing version 11.15.1 to 11.15.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 11.15.2
- types: TypeScript interface for the Trans component does now accept react-native props [1418](https://github.com/i18next/react-i18next/pull/1418)
### 11.15.1

@@ -2,0 +6,0 @@

17

package.json
{
"name": "react-i18next",
"version": "11.15.1",
"version": "11.15.2",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",

@@ -52,2 +52,3 @@ "main": "dist/commonjs/index.js",

"@testing-library/react-hooks": "^3.4.2",
"@types/react-native": "^0.66.6",
"all-contributors-cli": "^6.20.0",

@@ -97,2 +98,10 @@ "babel-core": "^7.0.0-bridge.0",

},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
},
"scripts": {

@@ -114,5 +123,5 @@ "clean": "rimraf dist && mkdirp dist",

"test:lint": "eslint ./src ./test",
"test:typescript": "tslint --project tsconfig.json",
"test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json",
"test:typescript:customtypes": "tslint --project ./test/typescript/custom-types/tsconfig.json",
"test:typescript": "tslint --project tsconfig.json '**/*.ts'",
"test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json '**/*.ts'",
"test:typescript:customtypes": "tslint --project ./test/typescript/custom-types/tsconfig.json '**/*.ts'",
"contributors:add": "all-contributors add",

@@ -119,0 +128,0 @@ "contributors:generate": "all-contributors generate",

@@ -7,11 +7,5 @@ # react-i18next [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Awesome%20react-i18next%20for%20react.js%20based%20on%20i18next%20internationalization%20ecosystem%20&url=https://github.com/i18next/react-i18next&via=jamuhl&hashtags=i18n,reactjs,js,dev)

[![Quality][quality-badge] ][quality-url]
[![dependencies][dependencies-image] ][dependencies-url]
[![devdependencies][devdependencies-image] ][devdependencies-url]
[npm-icon]: https://nodei.co/npm/react-i18next.png?downloads=true
[npm-url]: https://npmjs.org/package/react-i18next
[dependencies-image]: https://david-dm.org/i18next/react-i18next.png
[dependencies-url]: https://david-dm.org/i18next/react-i18next
[devdependencies-image]: https://david-dm.org/i18next/react-i18next/dev-status.png
[devdependencies-url]: https://david-dm.org/i18next/react-i18next#info=devDependencies
[quality-badge]: http://npm.packagequality.com/shield/react-i18next.svg

@@ -40,5 +34,6 @@ [quality-url]: http://packagequality.com/#?package=react-i18next

The documentation is published on [react.i18next.com](https://react.i18next.com)
The general i18next documentation is published on [www.i18next.com](https://www.i18next.com)
The documentation is published on [react.i18next.com](https://react.i18next.com) and PR changes can be supplied [here](https://github.com/i18next/react-i18next-gitbook).
The general i18next documentation is published on [www.i18next.com](https://www.i18next.com) and PR changes can be supplied [here](https://github.com/i18next/i18next-gitbook).
### What will my code look like?

@@ -45,0 +40,0 @@

@@ -11,2 +11,3 @@ import i18next, {

import * as React from 'react';
import { TextProps } from 'react-native';

@@ -134,6 +135,6 @@ type Subtract<T extends K, K> = Omit<T, keyof K>;

type CustomTypeParameters = {
interface CustomTypeParameters {
returnNull?: boolean;
returnEmptyString?: boolean;
};
}

@@ -239,8 +240,8 @@ type TypeOptionsFallback<TranslationValue, Option, MatchingValue> = Option extends false

export interface TransProps<
export type TransProps<
K extends TFuncKey<N, TKPrefix> extends infer A ? A : never,
N extends Namespace = DefaultNamespace,
TKPrefix = undefined,
E extends Element = HTMLDivElement
> extends React.HTMLProps<E> {
E extends React.HTMLProps<HTMLDivElement> | TextProps
> = E & {
children?: React.ReactNode;

@@ -258,3 +259,3 @@ components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };

t?: TFunction<N, TKPrefix>;
}
};

@@ -265,3 +266,3 @@ export function Trans<

TKPrefix extends KeyPrefix<N> = undefined,
E extends Element = HTMLDivElement
E extends React.HTMLProps<HTMLDivElement> | TextProps = React.HTMLProps<HTMLDivElement>
>(props: TransProps<K, N, TKPrefix, E>): React.ReactElement;

@@ -268,0 +269,0 @@

@@ -5,4 +5,12 @@ {

"rules": {
"semicolon": false
"array-type": [true, "array"],
"no-empty-interface": false,
"no-redundant-jsdoc": false,
"no-unnecessary-generics": false,
"semicolon": false,
"strict-export-declare-modifiers": false
},
"linterOptions": {
"exclude": ["node_modules/**/*"]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc