i18next 26.0.8 → 26.0.9
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/README.md +6 -6
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
- package/typescript/options.d.ts +1 -1
- package/typescript/t.d.ts +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ i18next provides:
|
|
|
23
23
|
- Extensibility: eg. [sprintf](https://www.i18next.com/overview/plugins-and-utils#post-processors)
|
|
24
24
|
- ...
|
|
25
25
|
|
|
26
|
-
> **Pro Tip:** Looking for a way to manage your translations? Locize is the official service by i18next's creators and now offers a **[Free plan](https://www.locize.com/pricing)** for small projects.
|
|
26
|
+
> **Pro Tip:** Looking for a way to manage your translations? Locize is the official service by i18next's creators and now offers a **[Free plan](https://www.locize.com/pricing?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme)** for small projects.
|
|
27
27
|
|
|
28
28
|
For more information visit the website:
|
|
29
29
|
|
|
@@ -44,21 +44,21 @@ The react specific documentation is published on [react.i18next.com](https://rea
|
|
|
44
44
|
<h3 align="center">Gold Sponsors</h3>
|
|
45
45
|
|
|
46
46
|
<p align="center">
|
|
47
|
-
<a href="https://locize.com
|
|
47
|
+
<a href="https://www.locize.com/?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme" target="_blank">
|
|
48
48
|
<img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif" width="240px">
|
|
49
49
|
</a>
|
|
50
50
|
</p>
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
54
|
-
**From the creators of i18next: localization as a service - [Locize](https://locize.com)**
|
|
54
|
+
**From the creators of i18next: localization as a service - [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme)**
|
|
55
55
|
|
|
56
|
-
A translation management system built around the i18next ecosystem - [Locize](https://locize.com).
|
|
56
|
+
A translation management system built around the i18next ecosystem - [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme).
|
|
57
57
|
|
|
58
|
-
**Now with a [Free plan](https://locize.com/pricing) for small projects!** Perfect for hobbyists or getting started.
|
|
58
|
+
**Now with a [Free plan](https://www.locize.com/pricing?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) for small projects!** Perfect for hobbyists or getting started.
|
|
59
59
|
|
|
60
60
|

|
|
61
61
|
|
|
62
|
-
With using [Locize](https://www.locize.com/?utm_source=i18next_readme&utm_medium=github) you directly support the future of i18next.
|
|
62
|
+
With using [Locize](https://www.locize.com/?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) you directly support the future of i18next.
|
|
63
63
|
|
|
64
64
|
---
|
package/dist/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"26.0.
|
|
1
|
+
{"type":"module","version":"26.0.9"}
|
package/package.json
CHANGED
package/typescript/options.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export type TypeOptions = $MergeBy<
|
|
|
122
122
|
* - `datetime` → `Date`
|
|
123
123
|
* - `relativetime` → `number`
|
|
124
124
|
* - `list` → `readonly string[]`
|
|
125
|
-
* - No format specifier → `string`
|
|
125
|
+
* - No format specifier → `string | number` (since i18next stringifies values at runtime)
|
|
126
126
|
*
|
|
127
127
|
* Use this option to add mappings for custom formatters or to override
|
|
128
128
|
* the built-in defaults.
|
package/typescript/t.d.ts
CHANGED
|
@@ -196,7 +196,7 @@ type _StripFormatOptions<F> = F extends `${infer Name}(${string})` ? Name : F;
|
|
|
196
196
|
type _ResolveEntryType<Name extends string, Format> = [Format] extends [never]
|
|
197
197
|
? Name extends 'count'
|
|
198
198
|
? number
|
|
199
|
-
: string
|
|
199
|
+
: string | number
|
|
200
200
|
: Format extends keyof _InterpolationFormatTypeMap
|
|
201
201
|
? _InterpolationFormatTypeMap[Format]
|
|
202
202
|
: _StripFormatOptions<Format> extends keyof _InterpolationFormatTypeMap
|