i18next 19.8.3 → 19.8.4
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 +9 -9
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -16,20 +16,20 @@ i18next provides:
|
|
|
16
16
|
|
|
17
17
|
- Flexible connection to [backend](https://www.i18next.com/plugins-and-utils.html#backends) (loading translations via xhr, ...)
|
|
18
18
|
- Optional [caching](https://www.i18next.com/plugins-and-utils.html#caches), user [language detection](https://www.i18next.com/plugins-and-utils.html#language-detector), ...
|
|
19
|
-
- Proper [pluralizations](https://www.i18next.com/plurals
|
|
20
|
-
- Translation [context](https://www.i18next.com/context
|
|
21
|
-
- [Nesting](https://www.i18next.com/nesting
|
|
22
|
-
- Flexibility: [Use it everywhere](https://www.i18next.com/supported-frameworks
|
|
23
|
-
- Extensibility: eg. [sprintf](https://www.i18next.com/plugins-and-utils
|
|
19
|
+
- Proper [pluralizations](https://www.i18next.com/translation-function/plurals)
|
|
20
|
+
- Translation [context](https://www.i18next.com/translation-function/context)
|
|
21
|
+
- [Nesting](https://www.i18next.com/translation-function/nesting), [Variable replacement](https://www.i18next.com/translation-function/interpolation)
|
|
22
|
+
- Flexibility: [Use it everywhere](https://www.i18next.com/overview/supported-frameworks)
|
|
23
|
+
- Extensibility: eg. [sprintf](https://www.i18next.com/overview/plugins-and-utils#post-processors)
|
|
24
24
|
- ...
|
|
25
25
|
|
|
26
26
|
For more information visit the website:
|
|
27
27
|
|
|
28
|
-
- [Getting started](https://www.i18next.com/getting-started
|
|
29
|
-
- [Translation Functionality](https://www.i18next.com/essentials
|
|
30
|
-
- [API](https://www.i18next.com/api
|
|
28
|
+
- [Getting started](https://www.i18next.com/overview/getting-started)
|
|
29
|
+
- [Translation Functionality](https://www.i18next.com/translation-function/essentials)
|
|
30
|
+
- [API](https://www.i18next.com/overview/api)
|
|
31
31
|
|
|
32
|
-
Our focus is providing the core to building a booming ecosystem. Independent of the building blocks you choose, be it react, angular or even good old jquery proper translation capabilities are just [one step away](https://www.i18next.com/supported-frameworks
|
|
32
|
+
Our focus is providing the core to building a booming ecosystem. Independent of the building blocks you choose, be it react, angular or even good old jquery proper translation capabilities are just [one step away](https://www.i18next.com/overview/supported-frameworks).
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface FallbackLngObjList {
|
|
|
4
4
|
|
|
5
5
|
export type FallbackLng = string | string[] | FallbackLngObjList | ((code:string) => string | string[] | FallbackLngObjList);
|
|
6
6
|
|
|
7
|
-
export type FormatFunction = (value: any, format?: string, lng?: string) => string;
|
|
7
|
+
export type FormatFunction = (value: any, format?: string, lng?: string, options?: InterpolationOptions & { [key: string]: any }) => string;
|
|
8
8
|
|
|
9
9
|
export interface InterpolationOptions {
|
|
10
10
|
/**
|