react-i18next 11.11.0 → 11.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +2 -1
- package/package.json +1 -1
- package/ts4.1/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 11.11.1
|
|
2
|
+
|
|
3
|
+
- feat(types): allow readonly namespaces in useTranslation [1339](https://github.com/i18next/react-i18next/pull/1339)
|
|
4
|
+
|
|
1
5
|
### 11.11.0
|
|
2
6
|
|
|
3
7
|
- introduce `CustomTypeOptions` type definition and deprecate the `Resources` type definition [1328](https://github.com/i18next/react-i18next/pull/1328)
|
package/README.md
CHANGED
|
@@ -67,10 +67,11 @@ Head over to the **interactive playground** at [codesandbox](https://codesandbox
|
|
|
67
67
|
|
|
68
68
|
### 📖 What others say
|
|
69
69
|
|
|
70
|
+
- [How to properly internationalize a React application using i18next](https://dev.to/adrai/how-to-properly-internationalize-a-react-application-using-i18next-3hdb) by Adriano Raiano
|
|
70
71
|
- [I18n with React and i18next](https://alligator.io/react/i18n-with-react-and-i18next) via Alligator.io by Danny Hurlburt
|
|
71
72
|
- [Ultimate Localization of React (Mobx) App with i18next](https://itnext.io/ultimate-localization-of-react-mobx-app-with-i18next-efab77712149) via itnext.io by Viktor Shevchenko
|
|
72
73
|
- [Internationalization for react done right Using the i18next i18n ecosystem](https://reactjsexample.com/internationalization-for-react-done-right-using-the-i18next-i18n-ecosystem/) via reactjsexample.com
|
|
73
|
-
- [
|
|
74
|
+
- [How to translate React application with react-i18next](https://codetain.com/blog/how-to-translate-react-application-with-react-i18next/) via codetain.co by Norbert Suski
|
|
74
75
|
- [Building i18n with Gatsby](https://www.gatsbyjs.org/blog/2017-10-17-building-i18n-with-gatsby/) via gatsbyjs.org by Samuel Goudie
|
|
75
76
|
- [Get your react.js application translated with style](https://medium.com/@jamuhl/get-your-react-js-application-translated-with-style-4ad090aefc2c) by Jan Mühlemann
|
|
76
77
|
- [Translate your expo.io / react-native mobile application](https://medium.com/@jamuhl/translate-your-expo-io-react-native-mobile-application-aa220b2362d2) by Jan Mühlemann
|
package/package.json
CHANGED
package/ts4.1/index.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ type UseTranslationResponse<N extends Namespace> = [TFunction<N>, i18n, boolean]
|
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
export function useTranslation<N extends Namespace = DefaultNamespace>(
|
|
200
|
-
ns?: N
|
|
200
|
+
ns?: N | Readonly<N>,
|
|
201
201
|
options?: UseTranslationOptions,
|
|
202
202
|
): UseTranslationResponse<N>;
|
|
203
203
|
|