@team-monolith/cds 1.129.2-alpha.2 → 1.130.0-alpha
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/dist/emotion.d.ts +185 -0
- package/dist/index.d.ts +8 -1
- package/dist/patterns/LexicalEditor/LexicalCustomConfigContext.d.ts +1 -0
- package/dist/patterns/LexicalEditor/LexicalCustomConfigContext.js +2 -1
- package/dist/patterns/LexicalEditor/LexicalEditor.d.ts +4 -0
- package/dist/patterns/LexicalEditor/LexicalEditor.js +9 -7
- package/dist/patterns/LexicalEditor/Plugins.d.ts +1 -0
- package/dist/patterns/LexicalEditor/Plugins.js +65 -61
- package/dist/patterns/LexicalEditor/components/FileSelectInput.js +24 -23
- package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +2 -1
- package/dist/patterns/LexicalEditor/nodes/FileNode/CompactFileView.d.ts +7 -0
- package/dist/patterns/LexicalEditor/nodes/FileNode/CompactFileView.js +53 -0
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.d.ts +0 -27
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.js +44 -115
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/FileNode/fileStyles.d.ts +27 -0
- package/dist/patterns/LexicalEditor/nodes/FileNode/fileStyles.js +85 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/CompactImageView.d.ts +6 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/CompactImageView.js +91 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +108 -102
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +4 -4
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/CompactToolbarPlugin.d.ts +1 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/CompactToolbarPlugin.js +106 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/compactAttachmentNodes.d.ts +8 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/compactAttachmentNodes.js +6 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/index.d.ts +1 -0
- package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +15 -14
- package/dist/patterns/LexicalEditor/uploadConstants.d.ts +6 -0
- package/dist/patterns/LexicalEditor/uploadConstants.js +4 -0
- package/package.json +3 -7
- package/@types/emotion.d.ts +0 -197
- package/node_modules/react-i18next/.eslintrc.json +0 -74
- package/node_modules/react-i18next/.husky/pre-commit +0 -1
- package/node_modules/react-i18next/.prettierignore +0 -4
- package/node_modules/react-i18next/CHANGELOG.md +0 -1433
- package/node_modules/react-i18next/LICENSE +0 -22
- package/node_modules/react-i18next/README.md +0 -181
- package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
- package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
- package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
- package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
- package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
- package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
- package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
- package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
- package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
- package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
- package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
- package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
- package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
- package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
- package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
- package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
- package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
- package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
- package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
- package/node_modules/react-i18next/dist/es/Trans.js +0 -43
- package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
- package/node_modules/react-i18next/dist/es/Translation.js +0 -12
- package/node_modules/react-i18next/dist/es/context.js +0 -42
- package/node_modules/react-i18next/dist/es/defaults.js +0 -18
- package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
- package/node_modules/react-i18next/dist/es/index.js +0 -18
- package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
- package/node_modules/react-i18next/dist/es/package.json +0 -1
- package/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
- package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
- package/node_modules/react-i18next/dist/es/utils.js +0 -62
- package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
- package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
- package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
- package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/helpers.d.ts +0 -3
- package/node_modules/react-i18next/icu.macro.d.mts +0 -1
- package/node_modules/react-i18next/icu.macro.d.ts +0 -103
- package/node_modules/react-i18next/icu.macro.js +0 -729
- package/node_modules/react-i18next/index.d.mts +0 -1
- package/node_modules/react-i18next/index.d.ts +0 -209
- package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
- package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
- package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
- package/node_modules/react-i18next/package.json +0 -167
- package/node_modules/react-i18next/react-i18next.js +0 -871
- package/node_modules/react-i18next/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
- package/node_modules/react-i18next/src/Trans.js +0 -45
- package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
- package/node_modules/react-i18next/src/Translation.js +0 -14
- package/node_modules/react-i18next/src/context.js +0 -54
- package/node_modules/react-i18next/src/defaults.js +0 -20
- package/node_modules/react-i18next/src/i18nInstance.js +0 -7
- package/node_modules/react-i18next/src/index.js +0 -22
- package/node_modules/react-i18next/src/initReactI18next.js +0 -11
- package/node_modules/react-i18next/src/unescape.js +0 -31
- package/node_modules/react-i18next/src/useSSR.js +0 -33
- package/node_modules/react-i18next/src/useTranslation.js +0 -171
- package/node_modules/react-i18next/src/utils.js +0 -93
- package/node_modules/react-i18next/src/withSSR.js +0 -21
- package/node_modules/react-i18next/src/withTranslation.js +0 -35
- package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
|
@@ -1,1433 +0,0 @@
|
|
|
1
|
-
### 15.7.3
|
|
2
|
-
|
|
3
|
-
- exports TransSelectorProps [1862](https://github.com/i18next/react-i18next/pull/1862) to address [1861](https://github.com/i18next/react-i18next/issues/1861)
|
|
4
|
-
|
|
5
|
-
### 15.7.2
|
|
6
|
-
|
|
7
|
-
- update i18next dependency
|
|
8
|
-
|
|
9
|
-
### 15.7.1
|
|
10
|
-
|
|
11
|
-
- Fix: \_EnableSelector type (for compatibility, enableSelector does not exist in TypeOptions) [1858](https://github.com/i18next/react-i18next/pull/1858)
|
|
12
|
-
|
|
13
|
-
### 15.7.0
|
|
14
|
-
|
|
15
|
-
- add new selector API to improve TypeScript IDE performance [1852](https://github.com/i18next/react-i18next/pull/1852)
|
|
16
|
-
- read more about it [here](https://github.com/i18next/i18next/blob/master/CHANGELOG.md#2540)
|
|
17
|
-
|
|
18
|
-
### 15.6.1
|
|
19
|
-
|
|
20
|
-
avoid exception when passing bindI18n: false [1856](https://github.com/i18next/react-i18next/pull/1856)
|
|
21
|
-
|
|
22
|
-
### 15.6.0
|
|
23
|
-
|
|
24
|
-
fix: passing components as object should still allow for indexed matching of children [1854](https://github.com/i18next/react-i18next/pull/1854)
|
|
25
|
-
|
|
26
|
-
### 15.5.3
|
|
27
|
-
|
|
28
|
-
chore: update `@babel/runtime` [1851](https://github.com/i18next/react-i18next/pull/1851)
|
|
29
|
-
|
|
30
|
-
### 15.5.2
|
|
31
|
-
|
|
32
|
-
fix element.ref access issue with react 19 [1846](https://github.com/i18next/react-i18next/pull/1846)
|
|
33
|
-
|
|
34
|
-
### 15.5.1
|
|
35
|
-
|
|
36
|
-
add typescript as optional peer dependency [1843](https://github.com/i18next/react-i18next/pull/1843)
|
|
37
|
-
|
|
38
|
-
### 15.5.0
|
|
39
|
-
|
|
40
|
-
feat: use const type parameters for useTranslation() [1842](https://github.com/i18next/react-i18next/pull/1842)
|
|
41
|
-
|
|
42
|
-
### 15.4.1
|
|
43
|
-
|
|
44
|
-
fix: unique key warning on componentized element [1835](https://github.com/i18next/react-i18next/pull/1835)
|
|
45
|
-
|
|
46
|
-
### 15.4.0
|
|
47
|
-
|
|
48
|
-
feat: add meta with codes on warnings to allow conditional logging [1826](https://github.com/i18next/react-i18next/pull/1826)
|
|
49
|
-
|
|
50
|
-
### 15.3.0
|
|
51
|
-
|
|
52
|
-
Uses the i18next logger instead of the default console logger, if there is a valid i18next instance. Now the debug i18next option is respected, and you can also inject your own logger module: https://www.i18next.com/misc/creating-own-plugins#logger
|
|
53
|
-
|
|
54
|
-
### 15.2.0
|
|
55
|
-
|
|
56
|
-
This version may be breaking if you still use React < v18 with TypeScript.
|
|
57
|
-
For JS users this version is equal to v15.1.4
|
|
58
|
-
|
|
59
|
-
- fix: Global JSX namespace is deprecated [1823](https://github.com/i18next/react-i18next/issues/1823) with [1822](https://github.com/i18next/react-i18next/pull/1822)
|
|
60
|
-
|
|
61
|
-
### 15.1.4
|
|
62
|
-
|
|
63
|
-
- Fix: warning each child should have a unique key [1820](https://github.com/i18next/react-i18next/pull/1820)
|
|
64
|
-
|
|
65
|
-
### 15.1.3
|
|
66
|
-
|
|
67
|
-
- fix: Self-closing REACT components in translation strings should not attempt to replace the component's children [1815](https://github.com/i18next/react-i18next/issues/1815) [1816](https://github.com/i18next/react-i18next/pull/1816)
|
|
68
|
-
|
|
69
|
-
### 15.1.2
|
|
70
|
-
|
|
71
|
-
- fix: Attempted to assign to readonly property [1813](https://github.com/i18next/react-i18next/pull/1813)
|
|
72
|
-
|
|
73
|
-
### 15.1.1
|
|
74
|
-
|
|
75
|
-
- fix: Not all namespaces are loaded when passing the lng option to useTranslate [1809](https://github.com/i18next/react-i18next/issues/1809)
|
|
76
|
-
|
|
77
|
-
### 15.1.0
|
|
78
|
-
|
|
79
|
-
- fix: `<Trans />` warns 'Each child in a list should have a unique "key" prop.' for react 19 [1806](https://github.com/i18next/react-i18next/pull/1806)
|
|
80
|
-
|
|
81
|
-
### 15.0.3
|
|
82
|
-
|
|
83
|
-
- try to fix [unexpected token issue](https://github.com/i18next/next-i18next/issues/2302)
|
|
84
|
-
|
|
85
|
-
### 15.0.2
|
|
86
|
-
|
|
87
|
-
- try to fix Trans handling with alwaysFormat set to true [1801](https://github.com/i18next/react-i18next/issues/1801)
|
|
88
|
-
|
|
89
|
-
### 15.0.1
|
|
90
|
-
|
|
91
|
-
- revert arrow function in class property to address [this](https://github.com/i18next/react-i18next/commit/46e8ea5ff69325b73087811a2ce6a2b1faffa971#r145061161)
|
|
92
|
-
|
|
93
|
-
### 15.0.0
|
|
94
|
-
|
|
95
|
-
- use optional chaining, nullish coalescing and nullish coalescing assignment [1774](https://github.com/i18next/react-i18next/pull/1774)
|
|
96
|
-
- Build config and optimizations [1769](https://github.com/i18next/react-i18next/pull/1769)
|
|
97
|
-
- some dependency updates [1768](https://github.com/i18next/react-i18next/pull/1768)
|
|
98
|
-
- use modern hasLoadedNamespace code (now requires at least i18next > v19.4.5 (introduced in june 2020))
|
|
99
|
-
|
|
100
|
-
### 14.1.3
|
|
101
|
-
|
|
102
|
-
- create a isObject helper function [1766](https://github.com/i18next/react-i18next/pull/1766)
|
|
103
|
-
- optimize nodesToString [1765](https://github.com/i18next/react-i18next/pull/1765)
|
|
104
|
-
- Simplifies hasValidReactChildren [1764](https://github.com/i18next/react-i18next/pull/1764)
|
|
105
|
-
- create a isString helper to avoid code duplication [1763](https://github.com/i18next/react-i18next/pull/1763)
|
|
106
|
-
- use arrow functions where possible [1762](https://github.com/i18next/react-i18next/pull/1762)
|
|
107
|
-
- use the commented out async code [1761](https://github.com/i18next/react-i18next/pull/1761)
|
|
108
|
-
|
|
109
|
-
### 14.1.2
|
|
110
|
-
|
|
111
|
-
- bring back internal interpolationOverride handling for Trans component (if there are childrens), fixes [1754](https://github.com/i18next/react-i18next/issues/1754)
|
|
112
|
-
|
|
113
|
-
### 14.1.1
|
|
114
|
-
|
|
115
|
-
- do not modify passed tOptions context property to address [1745](https://github.com/i18next/react-i18next/issues/1745)
|
|
116
|
-
|
|
117
|
-
### 14.1.0
|
|
118
|
-
|
|
119
|
-
- types(`Trans`): add typechecking on context prop [1732](https://github.com/i18next/react-i18next/pull/1732) (might break if using "internal" `Trans` or `TransProps`)
|
|
120
|
-
|
|
121
|
-
### 14.0.8
|
|
122
|
-
|
|
123
|
-
- fix: issue [1728](https://github.com/i18next/react-i18next/issues/1728) when useSuspense is false and default ns [1731](https://github.com/i18next/react-i18next/pull/1731)
|
|
124
|
-
|
|
125
|
-
### 14.0.7
|
|
126
|
-
|
|
127
|
-
- try to get rid of internal interpolationOverride handling for Trans component, fixes [1729](https://github.com/i18next/react-i18next/issues/1729)
|
|
128
|
-
|
|
129
|
-
### 14.0.6
|
|
130
|
-
|
|
131
|
-
- align context handling of Trans component with t function, fixes [1729](https://github.com/i18next/react-i18next/issues/1729)
|
|
132
|
-
|
|
133
|
-
### 14.0.5
|
|
134
|
-
|
|
135
|
-
- Fix [1691](https://github.com/i18next/react-i18next/issues/1691) for strict mode, by preserving change language binding [1720](https://github.com/i18next/react-i18next/pull/1720)
|
|
136
|
-
|
|
137
|
-
### 14.0.4
|
|
138
|
-
|
|
139
|
-
- fix interpolation of the count prop [1719](https://github.com/i18next/react-i18next/issues/1719)
|
|
140
|
-
|
|
141
|
-
### 14.0.3
|
|
142
|
-
|
|
143
|
-
- revert changes done in v14.0.2 since it breaks normal language change render updates
|
|
144
|
-
|
|
145
|
-
### 14.0.2
|
|
146
|
-
|
|
147
|
-
- Fix/bug [1691](https://github.com/i18next/react-i18next/issues/1691) make returned t function identical upon second effect run in strict mode [1716](https://github.com/i18next/react-i18next/pull/1716)
|
|
148
|
-
|
|
149
|
-
### 14.0.1
|
|
150
|
-
|
|
151
|
-
- types: fix typo in `CustomInstanceExtensions` [1713](https://github.com/i18next/react-i18next/pull/1713)
|
|
152
|
-
|
|
153
|
-
### 14.0.0
|
|
154
|
-
|
|
155
|
-
- types: reportNamespaces is now optional, should fix [1693](https://github.com/i18next/react-i18next/issues/1693)
|
|
156
|
-
|
|
157
|
-
### 13.5.0
|
|
158
|
-
|
|
159
|
-
- self-closing components in translation strings should not attempt to replace the component's children [1695](https://github.com/i18next/react-i18next/issues/1695)
|
|
160
|
-
|
|
161
|
-
### 13.4.1
|
|
162
|
-
|
|
163
|
-
- types: use CustomInstanceExtenstions to extend reportNamespaces
|
|
164
|
-
|
|
165
|
-
### 13.4.0
|
|
166
|
-
|
|
167
|
-
- fix: separate cjs and mjs typings
|
|
168
|
-
|
|
169
|
-
### 13.3.2
|
|
170
|
-
|
|
171
|
-
- types: fix consider importing '\*.js'
|
|
172
|
-
|
|
173
|
-
### 13.3.1
|
|
174
|
-
|
|
175
|
-
- optimize defaultVariables feature introduced in last release
|
|
176
|
-
|
|
177
|
-
### 13.3.0
|
|
178
|
-
|
|
179
|
-
- Respect defaultVariables in the interpolation options [1685](https://github.com/i18next/react-i18next/issues/1685)
|
|
180
|
-
|
|
181
|
-
### 13.2.2
|
|
182
|
-
|
|
183
|
-
- Fix missing TransWithoutContext type [1672](https://github.com/i18next/react-i18next/pull/1672)
|
|
184
|
-
|
|
185
|
-
### 13.2.1
|
|
186
|
-
|
|
187
|
-
- types: Allow iterable ReactI18NextChildren as children [1669](https://github.com/i18next/react-i18next/pull/1669)
|
|
188
|
-
|
|
189
|
-
### 13.2.0
|
|
190
|
-
|
|
191
|
-
- Don't use defaults prop as default key [1664](https://github.com/i18next/react-i18next/pull/1664)
|
|
192
|
-
|
|
193
|
-
### 13.1.2
|
|
194
|
-
|
|
195
|
-
- postpone usage of newer ES syntax
|
|
196
|
-
|
|
197
|
-
### 13.1.1
|
|
198
|
-
|
|
199
|
-
- Render all children regardless of type when using i18nIsDynamicList prop [1661](https://github.com/i18next/react-i18next/pull/1661)
|
|
200
|
-
|
|
201
|
-
### 13.1.0
|
|
202
|
-
|
|
203
|
-
- Fix non-list dynamic content in Trans component [1660](https://github.com/i18next/react-i18next/pull/1660)
|
|
204
|
-
|
|
205
|
-
### 13.0.3
|
|
206
|
-
|
|
207
|
-
- fix unescape is not consistently called for all values [1657](https://github.com/i18next/react-i18next/issues/1657)
|
|
208
|
-
|
|
209
|
-
### 13.0.2
|
|
210
|
-
|
|
211
|
-
- export icu.macro [1652](https://github.com/i18next/react-i18next/issues/1652)
|
|
212
|
-
|
|
213
|
-
### 13.0.1
|
|
214
|
-
|
|
215
|
-
- types: Fix performance issue in Trans component [1646](https://github.com/i18next/react-i18next/pull/1646)
|
|
216
|
-
|
|
217
|
-
### 13.0.0
|
|
218
|
-
|
|
219
|
-
- Update types to support t function redesign [1615](https://github.com/i18next/react-i18next/pull/1615)
|
|
220
|
-
- requires i18next >= v23.0.1
|
|
221
|
-
|
|
222
|
-
### 12.3.1
|
|
223
|
-
|
|
224
|
-
- optimization for optional lng prop for useTranslation, should now prevent missings when lazy loading translations [1637](https://github.com/i18next/react-i18next/issues/1637)
|
|
225
|
-
|
|
226
|
-
### 12.3.0
|
|
227
|
-
|
|
228
|
-
- optional lng prop for useTranslation (helping on server side [1637](https://github.com/i18next/react-i18next/issues/1637))
|
|
229
|
-
|
|
230
|
-
### 12.2.2
|
|
231
|
-
|
|
232
|
-
- try to fix conditional exports in package.json
|
|
233
|
-
|
|
234
|
-
### 12.2.1
|
|
235
|
-
|
|
236
|
-
- type fix: the type of defaultNS in I18nextProvider should support string[] [1633](https://github.com/i18next/react-i18next/pull/1633)
|
|
237
|
-
|
|
238
|
-
### 12.2.0
|
|
239
|
-
|
|
240
|
-
- if defaultValue is passed in not ready t functio (via useTranslation) return that instead of the key, even though the user-land could should be fixed [1618](https://github.com/i18next/react-i18next/issues/1618)
|
|
241
|
-
|
|
242
|
-
### 12.1.5
|
|
243
|
-
|
|
244
|
-
- fix react merged types [1606](https://github.com/i18next/react-i18next/pull/1606) originally introduced with #1531 to address #1506
|
|
245
|
-
|
|
246
|
-
### 12.1.4
|
|
247
|
-
|
|
248
|
-
- fix crash in gatsby [1594](https://github.com/i18next/react-i18next/issues/1594)
|
|
249
|
-
|
|
250
|
-
### 12.1.3
|
|
251
|
-
|
|
252
|
-
- fix fallback of t function in Trans component
|
|
253
|
-
|
|
254
|
-
### 12.1.2
|
|
255
|
-
|
|
256
|
-
- fix crash in gatsby [1594](https://github.com/i18next/react-i18next/issues/1594)
|
|
257
|
-
|
|
258
|
-
### 12.1.1
|
|
259
|
-
|
|
260
|
-
- fix for node resolution [1589](https://github.com/i18next/react-i18next/issues/1589)
|
|
261
|
-
|
|
262
|
-
### 12.1.0
|
|
263
|
-
|
|
264
|
-
- context-less version of Trans component to be used for environments without react context [1588](https://github.com/i18next/react-i18next/pull/1588)
|
|
265
|
-
|
|
266
|
-
### 12.0.0
|
|
267
|
-
|
|
268
|
-
- Update t function types to rely on types coming from i18next [1501](https://github.com/i18next/react-i18next/pull/1501)
|
|
269
|
-
|
|
270
|
-
### 11.18.6
|
|
271
|
-
|
|
272
|
-
- types: nsMode [1554](https://github.com/i18next/react-i18next/issues/1554)
|
|
273
|
-
|
|
274
|
-
### 11.18.5
|
|
275
|
-
|
|
276
|
-
- support unescaping forward slash [1548](https://github.com/i18next/react-i18next/pull/1548)
|
|
277
|
-
|
|
278
|
-
### 11.18.4
|
|
279
|
-
|
|
280
|
-
- fix: reset t when keyPrefix is updated [1544](https://github.com/i18next/react-i18next/pull/1544)
|
|
281
|
-
|
|
282
|
-
### 11.18.3
|
|
283
|
-
|
|
284
|
-
- types: bindI18n option for UseTranslationOptions
|
|
285
|
-
|
|
286
|
-
### 11.18.2
|
|
287
|
-
|
|
288
|
-
- more html entities to unescape by default [1538](https://github.com/i18next/react-i18next/pull/1538)
|
|
289
|
-
|
|
290
|
-
### 11.18.1
|
|
291
|
-
|
|
292
|
-
- types: allow iterable with objects as children [1531](https://github.com/i18next/react-i18next/pull/1531)
|
|
293
|
-
|
|
294
|
-
### 11.18.0
|
|
295
|
-
|
|
296
|
-
- ability to add custom unescape function [1529](https://github.com/i18next/react-i18next/pull/1529)
|
|
297
|
-
|
|
298
|
-
### 11.17.4
|
|
299
|
-
|
|
300
|
-
- fix: UMD build [1527](https://github.com/i18next/react-i18next/issues/1527)
|
|
301
|
-
|
|
302
|
-
### 11.17.3
|
|
303
|
-
|
|
304
|
-
- style: explicit React imports [1525](https://github.com/i18next/react-i18next/pull/1525)
|
|
305
|
-
|
|
306
|
-
### 11.17.2
|
|
307
|
-
|
|
308
|
-
- reset t if ns changes in useTranslation [1518](https://github.com/i18next/react-i18next/pull/1518)
|
|
309
|
-
|
|
310
|
-
### 11.17.1
|
|
311
|
-
|
|
312
|
-
- Stricter typescript type for Trans components prop [1516](https://github.com/i18next/react-i18next/pull/1516)
|
|
313
|
-
|
|
314
|
-
### 11.17.0
|
|
315
|
-
|
|
316
|
-
- Add support for keyPrefix in withTranslation [1512](https://github.com/i18next/react-i18next/pull/1512)
|
|
317
|
-
|
|
318
|
-
### 11.16.11
|
|
319
|
-
|
|
320
|
-
- types: fix Translation component types regression [1511](https://github.com/i18next/react-i18next/pull/1511)
|
|
321
|
-
|
|
322
|
-
### 11.16.10
|
|
323
|
-
|
|
324
|
-
- types: translation component types [1509](https://github.com/i18next/react-i18next/pull/1509)
|
|
325
|
-
|
|
326
|
-
### 11.16.9
|
|
327
|
-
|
|
328
|
-
- types: fix missing generic type for HTMLAttributes [1499](https://github.com/i18next/react-i18next/pull/1499)
|
|
329
|
-
|
|
330
|
-
### 11.16.8
|
|
331
|
-
|
|
332
|
-
- types: fix Trans component to support react 18 types, by introducing allowObjectInHTMLChildren TS option [1492](https://github.com/i18next/react-i18next/pull/1492)
|
|
333
|
-
|
|
334
|
-
### 11.16.7
|
|
335
|
-
|
|
336
|
-
- types: Added objects explicitly to Trans children [1486](https://github.com/i18next/react-i18next/pull/1486)
|
|
337
|
-
|
|
338
|
-
### 11.16.6
|
|
339
|
-
|
|
340
|
-
- fix: warn just once 'i18n.languages were undefined or empty' and return true, like before
|
|
341
|
-
|
|
342
|
-
### 11.16.5
|
|
343
|
-
|
|
344
|
-
- types: ReactNode should be prefixed with React [1481](https://github.com/i18next/react-i18next/pull/1481)
|
|
345
|
-
|
|
346
|
-
### 11.16.4
|
|
347
|
-
|
|
348
|
-
- fix type 'TFunctionResult' is not assignable to type 'ReactNode' on React 18 [1480](https://github.com/i18next/react-i18next/pull/1480)
|
|
349
|
-
|
|
350
|
-
### 11.16.3
|
|
351
|
-
|
|
352
|
-
- types: children fix for React v18 [1478](https://github.com/i18next/react-i18next/pull/1478)
|
|
353
|
-
- fix: apply [same fix](https://github.com/i18next/i18next/commit/0dcf7fdede9d58e16f82179b41b09f10eda5aeea) for local hasLoadedNamespace function
|
|
354
|
-
|
|
355
|
-
### 11.16.2
|
|
356
|
-
|
|
357
|
-
- update macro to wrap defaults in brackets when necessary [1472](https://github.com/i18next/react-i18next/pull/1472)
|
|
358
|
-
|
|
359
|
-
### 11.16.1
|
|
360
|
-
|
|
361
|
-
- types: for context prop of Trans component
|
|
362
|
-
|
|
363
|
-
### 11.16.0
|
|
364
|
-
|
|
365
|
-
- fix: transSupportBasicHtmlNodes for keepArray check [1470](https://github.com/i18next/react-i18next/pull/1470)
|
|
366
|
-
- feat: add context prop to Trans component [1464](https://github.com/i18next/react-i18next/issues/1464)
|
|
367
|
-
|
|
368
|
-
### 11.15.7
|
|
369
|
-
|
|
370
|
-
- types: add nsSeparator to CustomTypeOptions [1471](https://github.com/i18next/react-i18next/pull/1471)
|
|
371
|
-
|
|
372
|
-
### 11.15.6
|
|
373
|
-
|
|
374
|
-
- fix error for typescript 4.6 [1453](https://github.com/i18next/react-i18next/pull/1463)
|
|
375
|
-
|
|
376
|
-
### 11.15.5
|
|
377
|
-
|
|
378
|
-
- types: fix never return type when using plurals [1453](https://github.com/i18next/react-i18next/pull/1453)
|
|
379
|
-
|
|
380
|
-
### 11.15.4
|
|
381
|
-
|
|
382
|
-
- types: add values field to Plural component in macros [1446](https://github.com/i18next/react-i18next/pull/1446)
|
|
383
|
-
|
|
384
|
-
### 11.15.3
|
|
385
|
-
|
|
386
|
-
- types: fix for issue introduced with type extension for react-native [1436](https://github.com/i18next/react-i18next/pull/1436)
|
|
387
|
-
|
|
388
|
-
### 11.15.2
|
|
389
|
-
|
|
390
|
-
- types: TypeScript interface for the Trans component does now accept react-native props [1418](https://github.com/i18next/react-i18next/pull/1418)
|
|
391
|
-
|
|
392
|
-
### 11.15.1
|
|
393
|
-
|
|
394
|
-
- add missing types for shouldUnescape and useTranslation [1429](https://github.com/i18next/react-i18next/pull/1429)
|
|
395
|
-
|
|
396
|
-
### 11.15.0
|
|
397
|
-
|
|
398
|
-
- option to unescape html in Trans [1426](https://github.com/i18next/react-i18next/pull/1426)
|
|
399
|
-
|
|
400
|
-
### 11.14.3
|
|
401
|
-
|
|
402
|
-
- types: remove undefined from conditional type [1410](https://github.com/i18next/react-i18next/pull/1410)
|
|
403
|
-
|
|
404
|
-
### 11.14.2
|
|
405
|
-
|
|
406
|
-
- Add type-safe support to deep keyPrefix [1403](https://github.com/i18next/react-i18next/pull/1403)
|
|
407
|
-
|
|
408
|
-
### 11.14.1
|
|
409
|
-
|
|
410
|
-
- Rollback [1402](https://github.com/i18next/react-i18next/pull/1402): Remove generics from Trans component to suppress warning issue [1400](https://github.com/i18next/react-i18next/pull/1400)
|
|
411
|
-
|
|
412
|
-
### 11.14.0
|
|
413
|
-
|
|
414
|
-
- Remove generics from Trans component to suppress warning issue [1400](https://github.com/i18next/react-i18next/pull/1400)
|
|
415
|
-
- Add type support to plurals [1399](https://github.com/i18next/react-i18next/pull/1399)
|
|
416
|
-
|
|
417
|
-
### 11.13.0
|
|
418
|
-
|
|
419
|
-
- feat(types): add type-safe support to keyPrefix option [1390](https://github.com/i18next/react-i18next/pull/1390)
|
|
420
|
-
- feat(types): allow key separator augmentation [1367](https://github.com/i18next/react-i18next/pull/1367)
|
|
421
|
-
|
|
422
|
-
### 11.12.0
|
|
423
|
-
|
|
424
|
-
- feature: add key prefix support to useTranslation hook [1371](https://github.com/i18next/react-i18next/pull/1371)
|
|
425
|
-
|
|
426
|
-
### 11.11.4
|
|
427
|
-
|
|
428
|
-
- typescript: add returnNull and returnEptyString options to TypeOptions interface [1341](https://github.com/i18next/react-i18next/pull/1341)
|
|
429
|
-
|
|
430
|
-
### 11.11.3
|
|
431
|
-
|
|
432
|
-
- Trans: parse first, then interpolate [1345](https://github.com/i18next/react-i18next/pull/1345)
|
|
433
|
-
|
|
434
|
-
### 11.11.2
|
|
435
|
-
|
|
436
|
-
- feat(typings): support readonly namespaces in TFuncKey [1340](https://github.com/i18next/react-i18next/pull/1340)
|
|
437
|
-
|
|
438
|
-
### 11.11.1
|
|
439
|
-
|
|
440
|
-
- feat(types): allow readonly namespaces in useTranslation [1339](https://github.com/i18next/react-i18next/pull/1339)
|
|
441
|
-
|
|
442
|
-
### 11.11.0
|
|
443
|
-
|
|
444
|
-
- introduce `CustomTypeOptions` type definition and deprecate the `Resources` type definition [1328](https://github.com/i18next/react-i18next/pull/1328)
|
|
445
|
-
|
|
446
|
-
### 11.10.0
|
|
447
|
-
|
|
448
|
-
- add transWrapTextNodes option [1324](https://github.com/i18next/react-i18next/pull/1324) to prevent a well-known Google Translate issue with React apps [1323](https://github.com/i18next/react-i18next/issues/1323), thanks to [feross](https://github.com/feross)
|
|
449
|
-
|
|
450
|
-
### 11.9.0
|
|
451
|
-
|
|
452
|
-
- typescript/icu macro: add new syntax for interpolation of complex types [1316](https://github.com/i18next/react-i18next/pull/1316) -> [docs for template usage](https://react.i18next.com/misc/using-with-icu-format#tagged-template-for-icu)
|
|
453
|
-
|
|
454
|
-
### 11.8.15
|
|
455
|
-
|
|
456
|
-
- ignore null children in Trans component [1307](https://github.com/i18next/react-i18next/issues/1307)
|
|
457
|
-
|
|
458
|
-
### 11.8.14
|
|
459
|
-
|
|
460
|
-
- update html-parse-stringify to fix uppercase elements in Trans component [1304](https://github.com/i18next/react-i18next/issues/1304)
|
|
461
|
-
|
|
462
|
-
### 11.8.13
|
|
463
|
-
|
|
464
|
-
- Replace html-parse-stringify2 with html-parse-stringify [1283](https://github.com/i18next/react-i18next/pull/1283) to prevent [CVE-2021-23346](https://github.com/i18next/react-i18next/issues/1275)
|
|
465
|
-
|
|
466
|
-
### 11.8.12
|
|
467
|
-
|
|
468
|
-
- refactor: remove unneeded object [1286](https://github.com/i18next/react-i18next/pull/1286)
|
|
469
|
-
|
|
470
|
-
### 11.8.11
|
|
471
|
-
|
|
472
|
-
- typescript: Bug fixes [1284](https://github.com/i18next/react-i18next/pull/1284)
|
|
473
|
-
|
|
474
|
-
### 11.8.10
|
|
475
|
-
|
|
476
|
-
- typescript: Move type definition files [1276](https://github.com/i18next/react-i18next/pull/1276)
|
|
477
|
-
|
|
478
|
-
### 11.8.9
|
|
479
|
-
|
|
480
|
-
- Fix allow to replace i18n in provider with useTranslation hook [1273](https://github.com/i18next/react-i18next/pull/1273)
|
|
481
|
-
|
|
482
|
-
### 11.8.8
|
|
483
|
-
|
|
484
|
-
- typescript: Allow `TFuncKey` to be used without specifying the namespace, in the same way TFunction and useTranslation work [1262](https://github.com/i18next/react-i18next/pull/1262)
|
|
485
|
-
|
|
486
|
-
### 11.8.7
|
|
487
|
-
|
|
488
|
-
- warning for old wait usage
|
|
489
|
-
|
|
490
|
-
### 11.8.6
|
|
491
|
-
|
|
492
|
-
- typescript: Updated TS definitions (adding useSuspense option in TranslationProps) [1247](https://github.com/i18next/react-i18next/pull/1247)
|
|
493
|
-
|
|
494
|
-
### 11.8.5
|
|
495
|
-
|
|
496
|
-
- typescript: fix: Inference for specific keys ts 4.1 [1230](https://github.com/i18next/react-i18next/pull/1230)
|
|
497
|
-
|
|
498
|
-
### 11.8.4
|
|
499
|
-
|
|
500
|
-
- typescript: Add workaround to suppress infinite instantiation warning [1227](https://github.com/i18next/react-i18next/pull/1227)
|
|
501
|
-
- typescript: withTranslation() typing fix for defaultProps [1226](https://github.com/i18next/react-i18next/pull/1226)
|
|
502
|
-
- typescript: Accept const components prop for Trans [1224](https://github.com/i18next/react-i18next/pull/1224)
|
|
503
|
-
|
|
504
|
-
### 11.8.3
|
|
505
|
-
|
|
506
|
-
- Fix: Return type inference for t function (typescript 4.1) [1221](https://github.com/i18next/react-i18next/pull/1221)
|
|
507
|
-
|
|
508
|
-
### 11.8.2
|
|
509
|
-
|
|
510
|
-
- fix: type definitions for typescript 4.1 [1220](https://github.com/i18next/react-i18next/pull/1220)
|
|
511
|
-
|
|
512
|
-
### 11.8.1
|
|
513
|
-
|
|
514
|
-
- fix: typescript definitions for t function without namespaces [1214](https://github.com/i18next/react-i18next/pull/1214)
|
|
515
|
-
|
|
516
|
-
### 11.8.0
|
|
517
|
-
|
|
518
|
-
- typescript: Make the translation function fully type-safe [1193](https://github.com/i18next/react-i18next/pull/1193)
|
|
519
|
-
- trans should work with misleading overloaded empty elements in components [1206](https://github.com/i18next/react-i18next/pull/1206)
|
|
520
|
-
|
|
521
|
-
### 11.7.4
|
|
522
|
-
|
|
523
|
-
- fixes passing interpolations options via Trans components tOptions prop [1204](https://github.com/i18next/react-i18next/pull/1204)
|
|
524
|
-
|
|
525
|
-
### 11.7.3
|
|
526
|
-
|
|
527
|
-
- Avoid redundant re-rendering in I18nextProvider [1174](https://github.com/i18next/react-i18next/pull/1174)
|
|
528
|
-
|
|
529
|
-
### 11.7.2
|
|
530
|
-
|
|
531
|
-
- Avoid setState while react is rendering [1165](https://github.com/i18next/react-i18next/pull/1165)
|
|
532
|
-
|
|
533
|
-
### 11.7.1
|
|
534
|
-
|
|
535
|
-
- typescript: fix: typescript definition of context object [1160](https://github.com/i18next/react-i18next/pull/1160)
|
|
536
|
-
|
|
537
|
-
### 11.7.0
|
|
538
|
-
|
|
539
|
-
- Trans interpolating self-closing tags in components prop(object) [1140](https://github.com/i18next/react-i18next/pull/1140)
|
|
540
|
-
|
|
541
|
-
### 11.6.0
|
|
542
|
-
|
|
543
|
-
- Trans allow components props to be an object containing named interpolation elements
|
|
544
|
-
|
|
545
|
-
### 11.5.1
|
|
546
|
-
|
|
547
|
-
- providing filename when running babel.parse in icu.macro [1133](https://github.com/i18next/react-i18next/pull/1133)
|
|
548
|
-
|
|
549
|
-
### 11.5.0
|
|
550
|
-
|
|
551
|
-
- Trans: merge option in mapAST [1120](https://github.com/i18next/react-i18next/pull/1120)
|
|
552
|
-
|
|
553
|
-
### 11.4.0
|
|
554
|
-
|
|
555
|
-
- Add sideEffects false to package json to allow tree shaking [1097](https://github.com/i18next/react-i18next/pull/1097)
|
|
556
|
-
|
|
557
|
-
### 11.3.5
|
|
558
|
-
|
|
559
|
-
- fix returning defaultValue for Trans component [1092](https://github.com/i18next/react-i18next/pull/1092)
|
|
560
|
-
|
|
561
|
-
### 11.3.4
|
|
562
|
-
|
|
563
|
-
- [useTranslation] Avoid setting the new `t` function if the component is unmounted. (1051)[https://github.com/i18next/react-i18next/pull/1051]
|
|
564
|
-
|
|
565
|
-
### 11.3.3
|
|
566
|
-
|
|
567
|
-
- fixes copying ns in useSSR
|
|
568
|
-
|
|
569
|
-
### 11.3.2
|
|
570
|
-
|
|
571
|
-
- typescript: Add optional defaultN [1050](https://github.com/i18next/react-i18next/pull/1050)
|
|
572
|
-
|
|
573
|
-
### 11.3.1
|
|
574
|
-
|
|
575
|
-
- typescript: Translation component's ready parameter is missing in TypeScript definition [1044](https://github.com/i18next/react-i18next/pull/1044)
|
|
576
|
-
- change hook condition in Trans to equal useTranslations implementation
|
|
577
|
-
|
|
578
|
-
### 11.3.0
|
|
579
|
-
|
|
580
|
-
- useSSR: add namespaces to init options options.ns [1031](https://github.com/i18next/react-i18next/issues/1031)
|
|
581
|
-
- typescript: Fix the type of the components props of Trans [1036](https://github.com/i18next/react-i18next/pull/1036)
|
|
582
|
-
|
|
583
|
-
### 11.2.7
|
|
584
|
-
|
|
585
|
-
- typescript: Allow ComponentType for Trans' `parent` type [1021](https://github.com/i18next/react-i18next/pull/1021)
|
|
586
|
-
|
|
587
|
-
### 11.2.6
|
|
588
|
-
|
|
589
|
-
- typescript: Allow html props on Trans, fix `parent` prop type [1019](https://github.com/i18next/react-i18next/pull/1019)
|
|
590
|
-
|
|
591
|
-
### 11.2.5
|
|
592
|
-
|
|
593
|
-
- handle array fallback on wrongly configured app ;) [1010](https://github.com/i18next/react-i18next/pull/1010)
|
|
594
|
-
|
|
595
|
-
### 11.2.4
|
|
596
|
-
|
|
597
|
-
- typescript: Extend withTranslation tests to include optional props [1009](https://github.com/i18next/react-i18next/pull/1009)
|
|
598
|
-
|
|
599
|
-
### 11.2.3
|
|
600
|
-
|
|
601
|
-
- Store should be initialized after useSSR [1008](https://github.com/i18next/react-i18next/pull/1008)
|
|
602
|
-
|
|
603
|
-
### 11.2.2
|
|
604
|
-
|
|
605
|
-
- Only pass forwardedRef to children if options.withRef is false [999](https://github.com/i18next/react-i18next/pull/999)
|
|
606
|
-
|
|
607
|
-
### 11.2.1
|
|
608
|
-
|
|
609
|
-
- remove used jsx in withTranslation to avoid issues while compiling [994](https://github.com/i18next/react-i18next/pull/994)
|
|
610
|
-
|
|
611
|
-
### 11.2.0
|
|
612
|
-
|
|
613
|
-
- withTranslation allow not only passing a ref with option withRef but also passing a forwardedRef from outside as props (before forwardedRef was only added to wrapped component if the withRef option was set) [992](https://github.com/i18next/react-i18next/pull/992)
|
|
614
|
-
|
|
615
|
-
### 11.1.0
|
|
616
|
-
|
|
617
|
-
- Update `rollup.config.js` for IE11 Transpilations [988](https://github.com/i18next/react-i18next/pull/988)
|
|
618
|
-
|
|
619
|
-
### 11.0.1
|
|
620
|
-
|
|
621
|
-
- typescript: Use updated ts export default from i18next [984](https://github.com/i18next/react-i18next/pull/984)
|
|
622
|
-
|
|
623
|
-
### 11.0.0
|
|
624
|
-
|
|
625
|
-
- **Breaking** based on i18next changes made in [v18.0.0](https://github.com/i18next/i18next/blob/master/CHANGELOG.md#1800) changing the language should not trigger a Suspense anylonger. The state will be ready and `t` bound to the previous language until `languageChanged` get triggered -> this results in a nicer experience for users (no flickering Suspense while changing the language). Based on issue "Suspence is fired during lang change when useTranslation called in between" [975](https://github.com/i18next/react-i18next/issues/975)
|
|
626
|
-
- the default bindI18n is now `languageChanged` and `languageChanging` was removed from that default
|
|
627
|
-
- Adding `languageChanging` to bindI18n will bring back old behaviour where a language change will trigger a Suspense / ready: false while loading those new translations
|
|
628
|
-
- You can now override the defaults in i18next.options.react for `bindI18n`, `bindI18nStore` and `useSuspense` in the hook by `useTranslation(ns, { bindI18n, bindI18nStore, useSuspense})` or in the HOC by passing those as props.
|
|
629
|
-
|
|
630
|
-
### 10.13.2
|
|
631
|
-
|
|
632
|
-
- typescript: Add t function to TransProps types [969](https://github.com/i18next/react-i18next/pull/969)
|
|
633
|
-
- lint: Fix linter errors [966](https://github.com/i18next/react-i18next/pull/966)
|
|
634
|
-
|
|
635
|
-
### 10.13.1
|
|
636
|
-
|
|
637
|
-
- avoid conditional hook call in edge case (was only issue in wrong setup useContext outside I18nextProvider) [951](https://github.com/i18next/react-i18next/pull/951)
|
|
638
|
-
|
|
639
|
-
### 10.13.0
|
|
640
|
-
|
|
641
|
-
- also use count from `values` object passed to Trans if passed - else use the one on props [947](https://github.com/i18next/react-i18next/pull/947)
|
|
642
|
-
|
|
643
|
-
### 10.12.5
|
|
644
|
-
|
|
645
|
-
- typescript: Update types for reportNamespaces [945](https://github.com/i18next/react-i18next/pull/945)
|
|
646
|
-
- typescript: Improve withSSR type definition [943](https://github.com/i18next/react-i18next/pull/943)
|
|
647
|
-
|
|
648
|
-
### 10.12.4
|
|
649
|
-
|
|
650
|
-
- ICU: Fixes macro to support count prop and expressions better [939](https://github.com/i18next/react-i18next/pull/939)
|
|
651
|
-
|
|
652
|
-
### 10.12.3
|
|
653
|
-
|
|
654
|
-
- avoid conditional hook call in edge case (wrong setup) [935](https://github.com/i18next/react-i18next/pull/935)
|
|
655
|
-
|
|
656
|
-
### 10.12.2
|
|
657
|
-
|
|
658
|
-
- Trans: do not replace html tags in translation strings that are not in the transKeepBasicHtmlNodesFor array [919](https://github.com/i18next/react-i18next/issues/919)
|
|
659
|
-
|
|
660
|
-
### 10.12.1
|
|
661
|
-
|
|
662
|
-
- Set ready flag to false when i18n instance has not been initialised [918](https://github.com/i18next/react-i18next/pull/918)
|
|
663
|
-
|
|
664
|
-
### 10.12.0
|
|
665
|
-
|
|
666
|
-
- fix / extend icu.macro: ICU: Trans macro will parse defaults as alternate to children [917](https://github.com/i18next/react-i18next/pull/917)
|
|
667
|
-
|
|
668
|
-
### 10.11.5
|
|
669
|
-
|
|
670
|
-
- typescript: fix types for use() [912](https://github.com/i18next/react-i18next/pull/912)
|
|
671
|
-
|
|
672
|
-
### 10.11.4
|
|
673
|
-
|
|
674
|
-
- assert edge case trans component get set a key
|
|
675
|
-
- assert context get destructed of empty object if context gets used falsely on a component got pulled out of main tree from react-portal or similar
|
|
676
|
-
|
|
677
|
-
### 10.11.3
|
|
678
|
-
|
|
679
|
-
- only apply initial values in useSSR, withSSR on i18next instances not being a clone (eg. created by express middleware on server) ==> don't apply on serverside
|
|
680
|
-
|
|
681
|
-
### 10.11.2
|
|
682
|
-
|
|
683
|
-
- Reload translations whenever namespaces passed to useTranslation() change [878](https://github.com/i18next/react-i18next/pull/878)
|
|
684
|
-
|
|
685
|
-
### 10.11.1
|
|
686
|
-
|
|
687
|
-
- fixes a regression in Trans component taking namespace from passed t function [867](https://github.com/i18next/react-i18next/issues/867#issuecomment-502395958)
|
|
688
|
-
|
|
689
|
-
### 10.11.0
|
|
690
|
-
|
|
691
|
-
- Restore support passing the defaultNS via I18nextProvider prop [860](https://github.com/i18next/react-i18next/pull/860)
|
|
692
|
-
|
|
693
|
-
### 10.10.0
|
|
694
|
-
|
|
695
|
-
- HOC: expose wrapped component as WrappedComponent property [853](https://github.com/i18next/react-i18next/pull/853)
|
|
696
|
-
|
|
697
|
-
### 10.9.1
|
|
698
|
-
|
|
699
|
-
- Fix useEffect mount/unmount usage [852](https://github.com/i18next/react-i18next/pull/852)
|
|
700
|
-
|
|
701
|
-
### 10.9.0
|
|
702
|
-
|
|
703
|
-
- trigger suspense on languageChanging by add listening to that event too (new in i18next@15.1.0) - if you do not like this behaviour of suspending during languageChange - remove it from bindI18n
|
|
704
|
-
|
|
705
|
-
### 10.8.1
|
|
706
|
-
|
|
707
|
-
- expose context [829](https://github.com/i18next/react-i18next/pull/829)
|
|
708
|
-
|
|
709
|
-
### 10.8.0
|
|
710
|
-
|
|
711
|
-
- Support taking values for interpolation not only from content but the props count, values too: Replace count prop from <Trans> in translation string automatically [826](https://github.com/i18next/react-i18next/issues/826)
|
|
712
|
-
|
|
713
|
-
### 10.7.0
|
|
714
|
-
|
|
715
|
-
- brings back nsMode=default|fallback [822](https://github.com/i18next/react-i18next/pull/822)
|
|
716
|
-
- typescript: Add missing type definition for withTranslation options [821](https://github.com/i18next/react-i18next/pull/821)
|
|
717
|
-
|
|
718
|
-
### 10.6.2
|
|
719
|
-
|
|
720
|
-
- Fix Trans component ignore default options [818](https://github.com/i18next/react-i18next/pull/818)
|
|
721
|
-
|
|
722
|
-
### 10.6.1
|
|
723
|
-
|
|
724
|
-
- useTranslation useEffect also guard against unmounted for bound events...seems unmount and actual call to useEffect cleanup are not in correct order (component is first unmounted and then unbound - should be vice versa)
|
|
725
|
-
|
|
726
|
-
### 10.6.0
|
|
727
|
-
|
|
728
|
-
- use forwardRef for withTranslation [802](https://github.com/i18next/react-i18next/pull/802)
|
|
729
|
-
- fixes Translation reset after component is unmounted with useTranslation [801](https://github.com/i18next/react-i18next/issues/801)
|
|
730
|
-
|
|
731
|
-
### 10.5.3
|
|
732
|
-
|
|
733
|
-
- Fix the displayName of HOC components [798](https://github.com/i18next/react-i18next/pull/798)
|
|
734
|
-
|
|
735
|
-
### 10.5.2
|
|
736
|
-
|
|
737
|
-
- fixes: transSupportBasicHtmlNodes doesn't work with self-closing Trans [790](https://github.com/i18next/react-i18next/issues/790)
|
|
738
|
-
|
|
739
|
-
### 10.5.1
|
|
740
|
-
|
|
741
|
-
- ReferenceError: setImmediate is not defined [787](https://github.com/i18next/react-i18next/issues/787)
|
|
742
|
-
|
|
743
|
-
### 10.5.0
|
|
744
|
-
|
|
745
|
-
- Adding support for nested component inside Trans that are a list.map like `<ul>{['a', 'b'].map(item => ( <li key={item}>{item}</li> ))}</ul>` [784](https://github.com/i18next/react-i18next/pull/784) (Adding `<ul i18nIsDynamicList>` will also create correct missing string)
|
|
746
|
-
|
|
747
|
-
### 10.4.2
|
|
748
|
-
|
|
749
|
-
- typescript: updated typescript definition of the UseTranslationOptions interface, added the useSuspense configuration property [778](https://github.com/i18next/react-i18next/pull/778)
|
|
750
|
-
|
|
751
|
-
### 10.4.1
|
|
752
|
-
|
|
753
|
-
- allow p in Trans
|
|
754
|
-
|
|
755
|
-
### 10.4.0
|
|
756
|
-
|
|
757
|
-
- allow br, strong, i tags be used for translations handled by Trans
|
|
758
|
-
|
|
759
|
-
### 10.3.1
|
|
760
|
-
|
|
761
|
-
- IE11 sending console as the first argument to apply [774](https://github.com/i18next/react-i18next/pull/774)
|
|
762
|
-
|
|
763
|
-
### 10.3.0
|
|
764
|
-
|
|
765
|
-
- Allow to enable/disable useSuspense at a hook or component level [769](https://github.com/i18next/react-i18next/pull/769)
|
|
766
|
-
- typescript: Add ready/tReady type definitions [753](https://github.com/i18next/react-i18next/pull/753)
|
|
767
|
-
|
|
768
|
-
### 10.2.1
|
|
769
|
-
|
|
770
|
-
- fix cimode won't load therefore won't be ready [768](https://github.com/i18next/react-i18next/issues/768)
|
|
771
|
-
|
|
772
|
-
### 10.2.0
|
|
773
|
-
|
|
774
|
-
- Add bindI18nStore event options to listen to store changes if needed [749](https://github.com/i18next/react-i18next/pull/749)
|
|
775
|
-
|
|
776
|
-
### 10.1.2
|
|
777
|
-
|
|
778
|
-
- allow passing ready if i18next not initialized yet but initialStore set (timing issue in razzle)
|
|
779
|
-
|
|
780
|
-
### 10.1.1
|
|
781
|
-
|
|
782
|
-
- forward ready state in withTranslation, Translation
|
|
783
|
-
|
|
784
|
-
### 10.1.0
|
|
785
|
-
|
|
786
|
-
- better naming for Wrappers in HOC for easier use of react debugger in console
|
|
787
|
-
- allow setting options react.useSuspense to false on i18next.init to avoid usage of suspense
|
|
788
|
-
|
|
789
|
-
### 10.0.5
|
|
790
|
-
|
|
791
|
-
- fixes namespace loading for false inital state undefined
|
|
792
|
-
- typescript: Make children optional within TransProps [728](https://github.com/i18next/react-i18next/pull/728)
|
|
793
|
-
|
|
794
|
-
### 10.0.4
|
|
795
|
-
|
|
796
|
-
- try avoiding pull in of regenerator runtime for async usage -> use Promise for now
|
|
797
|
-
|
|
798
|
-
### 10.0.3
|
|
799
|
-
|
|
800
|
-
- fix initial props on withSSR
|
|
801
|
-
|
|
802
|
-
### 10.0.2
|
|
803
|
-
|
|
804
|
-
- refactor ready state in useTranslation
|
|
805
|
-
|
|
806
|
-
### 10.0.1
|
|
807
|
-
|
|
808
|
-
- allow object spread `const { t } = useTranslation()` [714](https://github.com/i18next/react-i18next/pull/714)
|
|
809
|
-
- typescript: add types for I18nextProvider [721](https://github.com/i18next/react-i18next/pull/721)
|
|
810
|
-
|
|
811
|
-
### 10.0.0
|
|
812
|
-
|
|
813
|
-
- released to npm
|
|
814
|
-
- for MIGRATION READ [https://react.i18next.com/latest/migrating-v9-to-v10](https://react.i18next.com/latest/migrating-v9-to-v10)
|
|
815
|
-
|
|
816
|
-
### 10.0.0-alpha.3
|
|
817
|
-
|
|
818
|
-
- hooks: make reportNS bound to the i18n instance - so report is per request [711](https://github.com/i18next/react-i18next/issues/711)
|
|
819
|
-
|
|
820
|
-
### 10.0.0-alpha.2
|
|
821
|
-
|
|
822
|
-
- hooks: add Translation render prop [708](https://github.com/i18next/react-i18next/issues/708)
|
|
823
|
-
- hooks: add I18nextProvider for passing i18n instance via context
|
|
824
|
-
- hooks: might fix infinit loop issue on undefined language (set ready to true anyway) [673](https://github.com/i18next/react-i18next/issues/673)
|
|
825
|
-
|
|
826
|
-
### 10.0.0-alpha.1
|
|
827
|
-
|
|
828
|
-
- hooks: initial alpha version with all build targets -> preparing v10 release
|
|
829
|
-
|
|
830
|
-
### 9.0.10
|
|
831
|
-
|
|
832
|
-
- typescript: Add TS definition for reportNS prop [699](https://github.com/i18next/react-i18next/pull/699)
|
|
833
|
-
|
|
834
|
-
### 9.0.9
|
|
835
|
-
|
|
836
|
-
- typescript: fix: useTranslation hooks typing [698](https://github.com/i18next/react-i18next/pull/698)
|
|
837
|
-
|
|
838
|
-
### 9.0.8
|
|
839
|
-
|
|
840
|
-
- typescript: TFunction usage inside NamespacesConsumer should behave [694](https://github.com/i18next/react-i18next/pull/694)
|
|
841
|
-
|
|
842
|
-
### 9.0.7
|
|
843
|
-
|
|
844
|
-
- fixing react-i18next throwing webpack error when initializeing using @babel/runtime 7.3.0 [685](https://github.com/i18next/react-i18next/issues/685)
|
|
845
|
-
|
|
846
|
-
### 9.0.6
|
|
847
|
-
|
|
848
|
-
- updated all deps
|
|
849
|
-
|
|
850
|
-
### 9.0.5
|
|
851
|
-
|
|
852
|
-
- UMD: Environment optimization with rollup-plugin-replace support [683](https://github.com/i18next/react-i18next/pull/683)
|
|
853
|
-
|
|
854
|
-
### 9.0.4
|
|
855
|
-
|
|
856
|
-
- typescript: add generic type to t function and the tests [665](https://github.com/i18next/react-i18next/pull/665)
|
|
857
|
-
- hooks: enable passing in i18n to useTranslation hook so we could wrap that with a useContext enabled hook
|
|
858
|
-
|
|
859
|
-
### 9.0.3
|
|
860
|
-
|
|
861
|
-
- fix useSSR for hooks storing state on i18n instance and not globally [671](https://github.com/i18next/react-i18next/issues/671)
|
|
862
|
-
- should fix case where fallbackLng is set false and invalid lng is loaded in hooks -> never ready [677](https://github.com/i18next/react-i18next/issues/677)
|
|
863
|
-
- multiple typescript improvements
|
|
864
|
-
|
|
865
|
-
### 9.0.2
|
|
866
|
-
|
|
867
|
-
- fix hooks ts [658](https://github.com/i18next/react-i18next/pull/658)
|
|
868
|
-
|
|
869
|
-
### 9.0.1
|
|
870
|
-
|
|
871
|
-
- fix ts [655](https://github.com/i18next/react-i18next/pull/655)
|
|
872
|
-
|
|
873
|
-
### 9.0.0
|
|
874
|
-
|
|
875
|
-
- allow defining `transEmptyNodeValue` in i18next.options.react to set a default fallback value for empty nodes to allow i18next fallback flow [462](https://github.com/i18next/react-i18next/pull/462)
|
|
876
|
-
- Warn if i18next instance is a promise [652](https://github.com/i18next/react-i18next/pull/652)
|
|
877
|
-
- keeping legacy names (no deprecation on them as this will be last version using those -> v10 will be based on hooks)
|
|
878
|
-
|
|
879
|
-
**BREAKING**
|
|
880
|
-
|
|
881
|
-
- out of licensing reasons the ponyfill for react-context had to be removed [635](https://github.com/i18next/react-i18next/issues/635)
|
|
882
|
-
|
|
883
|
-
Using react >= 16.3.0 will be save - in other cases you will need to polyfill react.createContext yourself!!
|
|
884
|
-
|
|
885
|
-
### 8.4.0
|
|
886
|
-
|
|
887
|
-
- update typescript definitions for i18next v13 [631](https://github.com/i18next/react-i18next/pull/631)
|
|
888
|
-
|
|
889
|
-
### 8.3.9
|
|
890
|
-
|
|
891
|
-
- try fixing hooks ready algorithm [642](https://github.com/i18next/react-i18next/issues/642)
|
|
892
|
-
|
|
893
|
-
### 8.3.8
|
|
894
|
-
|
|
895
|
-
- try fixing edge case of unset state: [615](https://github.com/i18next/react-i18next/issues/615)
|
|
896
|
-
|
|
897
|
-
### 8.3.7
|
|
898
|
-
|
|
899
|
-
- handle initial SSR props only once
|
|
900
|
-
|
|
901
|
-
### 8.3.6
|
|
902
|
-
|
|
903
|
-
- remove componentWillReceiveProps call in I18nextProvider to comply with react strict mode [596](https://github.com/i18next/react-i18next/pull/596)
|
|
904
|
-
|
|
905
|
-
### 8.3.5
|
|
906
|
-
|
|
907
|
-
- rename named export to window.ReactI18next for standalone js
|
|
908
|
-
|
|
909
|
-
### 8.3.4
|
|
910
|
-
|
|
911
|
-
- try fixing standalone browser build
|
|
912
|
-
|
|
913
|
-
### 8.3.3
|
|
914
|
-
|
|
915
|
-
- remove wait option in hooks code (not used anylonger)
|
|
916
|
-
|
|
917
|
-
### 8.3.2
|
|
918
|
-
|
|
919
|
-
- use react suspense in hooks experimental code [learn more](https://react.i18next.com/experimental/using-with-hooks)
|
|
920
|
-
|
|
921
|
-
### 8.3.1
|
|
922
|
-
|
|
923
|
-
- make export in ./hooks.js explicit
|
|
924
|
-
|
|
925
|
-
### 8.3.0
|
|
926
|
-
|
|
927
|
-
- Ensure withI18n hoists static members. [584](https://github.com/i18next/react-i18next/pull/584)
|
|
928
|
-
|
|
929
|
-
### 8.2.0
|
|
930
|
-
|
|
931
|
-
- comes with support for hooks that are experimental in react v16.7.0-alpha [learn more](https://react.i18next.com/experimental/using-with-hooks)
|
|
932
|
-
|
|
933
|
-
### 8.1.2
|
|
934
|
-
|
|
935
|
-
- publish changes to typescript definitions [567](https://github.com/i18next/react-i18next/pull/567)
|
|
936
|
-
|
|
937
|
-
### 8.1.1
|
|
938
|
-
|
|
939
|
-
- persisting generated i18nOptions on withI18n hoc to avoid rerenders on pure components
|
|
940
|
-
|
|
941
|
-
### 8.1.0
|
|
942
|
-
|
|
943
|
-
- add typedefinitions [557](https://github.com/i18next/react-i18next/pull/557)
|
|
944
|
-
|
|
945
|
-
### 8.0.8
|
|
946
|
-
|
|
947
|
-
- add innerRefs support to withContext, withI18n
|
|
948
|
-
|
|
949
|
-
### 8.0.7
|
|
950
|
-
|
|
951
|
-
- replaces getWrappedInstance on withNamespaces / translate with passing a innerRef https://github.com/facebook/react/issues/13456 [534](https://github.com/i18next/react-i18next/issues/534)
|
|
952
|
-
|
|
953
|
-
### 8.0.6
|
|
954
|
-
|
|
955
|
-
- fix SSR cases
|
|
956
|
-
|
|
957
|
-
### 8.0.5
|
|
958
|
-
|
|
959
|
-
- fix issue with context not applied when merging i18n options
|
|
960
|
-
|
|
961
|
-
### 8.0.4
|
|
962
|
-
|
|
963
|
-
- add prop-types to peer deps as long we use the ponyfill create-react-context
|
|
964
|
-
|
|
965
|
-
### 8.0.3
|
|
966
|
-
|
|
967
|
-
- remove prop-types in tests
|
|
968
|
-
|
|
969
|
-
### 8.0.2
|
|
970
|
-
|
|
971
|
-
- remove proptypes dependency - not needed anylonger as we do not define old context
|
|
972
|
-
- move out ssr stuff to utils
|
|
973
|
-
- move reportNS to the NamespacesConsumer
|
|
974
|
-
|
|
975
|
-
### 8.0.1
|
|
976
|
-
|
|
977
|
-
- use @babel/plugin-transform-runtime
|
|
978
|
-
|
|
979
|
-
### 8.0.0
|
|
980
|
-
|
|
981
|
-
- translate HOC was renamed to "withNamespaces" as it controls which namespaces should be loaded
|
|
982
|
-
- I18n render prop was renamed to "NamespacesConsumer" as it controls which namespaces should be "consumed"
|
|
983
|
-
- there is a new context.consuming HOC "withI18n" adds i18n, t to component props (without the extra options of withNamespaces)
|
|
984
|
-
|
|
985
|
-
- there is a simplification for interpolation in translations
|
|
986
|
-
|
|
987
|
-
`'Hello <1><0>{{name}}</0></1>, you have <3>{{count}}</3> message. Open <5>hear</5>.'`
|
|
988
|
-
|
|
989
|
-
can be written as:
|
|
990
|
-
|
|
991
|
-
`'Hello <1>{{name}}</1>, you have {{count}} message. Open <5>hear</5>.'`
|
|
992
|
-
|
|
993
|
-
=> there is no need to add `<0>...</0>` around interpolated values anylonger
|
|
994
|
-
=> your old files having those extra pseudo tags will still work without needing to change them
|
|
995
|
-
|
|
996
|
-
- there is a new I18nContext -> I18nContext.provider, I18next.consumer using new react context api
|
|
997
|
-
|
|
998
|
-
**Using react's new context api**
|
|
999
|
-
|
|
1000
|
-
should be non breaking in most cases, with following exceptions:
|
|
1001
|
-
|
|
1002
|
-
- using preact you will have to use preact.createContext plugin (or eventual hope the provided polyfill works for preact too)
|
|
1003
|
-
- you used the translate.getWrappedInstance function -> you will need to use instance.getWrappedInstance().getWrappedInstance() now as the translate hoc is now wrapped in an additional I18nContext.Consumer
|
|
1004
|
-
|
|
1005
|
-
still we prefer to increase this to a **major version** as beside the described egde cases there might be other effects we not have covered with our tests
|
|
1006
|
-
|
|
1007
|
-
### 7.13.0
|
|
1008
|
-
|
|
1009
|
-
- Load missing namespaces when updating ns prop on I18n component [523](https://github.com/i18next/react-i18next/pull/523)
|
|
1010
|
-
|
|
1011
|
-
### 7.12.0
|
|
1012
|
-
|
|
1013
|
-
- pass down lng via props in I18n and translate HOC - for use cases like [508](https://github.com/i18next/react-i18next/issues/508)
|
|
1014
|
-
|
|
1015
|
-
### 7.11.1
|
|
1016
|
-
|
|
1017
|
-
- fix related to issue #504: also report default Namespace with translate() [506](https://github.com/i18next/react-i18next/pull/506)
|
|
1018
|
-
|
|
1019
|
-
### 7.11.0
|
|
1020
|
-
|
|
1021
|
-
- Added reportNS function to I18NextProvider to report used namespaces [500](https://github.com/i18next/react-i18next/pull/500)
|
|
1022
|
-
|
|
1023
|
-
### 7.10.1
|
|
1024
|
-
|
|
1025
|
-
- fix small issue in icu.macro introduced on refactoring
|
|
1026
|
-
|
|
1027
|
-
### 7.10.0
|
|
1028
|
-
|
|
1029
|
-
- Adds import { Trans, Plural, Select } from `react-i18next/icu.macro` a babel macro to allow nicer components used with ICU format (which as default would result in invalid JSX). [discussion](https://github.com/i18next/react-i18next/issues/439)
|
|
1030
|
-
|
|
1031
|
-
### 7.9.1
|
|
1032
|
-
|
|
1033
|
-
- Skip custom html tags in Trans component translation [PR482](https://github.com/i18next/react-i18next/pull/482)
|
|
1034
|
-
|
|
1035
|
-
### 7.9.0
|
|
1036
|
-
|
|
1037
|
-
- Support defaultNS from I18nextProvider props [PR478](https://github.com/i18next/react-i18next/pull/478)
|
|
1038
|
-
- Don't polyfill Object.entries globally [476](https://github.com/i18next/react-i18next/pull/476)
|
|
1039
|
-
|
|
1040
|
-
### 7.8.1
|
|
1041
|
-
|
|
1042
|
-
- i18n in context is optional as it can be passed via props too [474](https://github.com/i18next/react-i18next/pull/474)
|
|
1043
|
-
|
|
1044
|
-
### 7.8.0
|
|
1045
|
-
|
|
1046
|
-
- avoid rerenders triggered by bound i18next events while I18n or translate hoc are not ready yet (omitBoundRerender: true --- is default) [456](https://github.com/i18next/react-i18next/issues/456)
|
|
1047
|
-
|
|
1048
|
-
### 7.7.0
|
|
1049
|
-
|
|
1050
|
-
- Allow Trans component to be used with props only for icu use case (next step babel makro) [439](https://github.com/i18next/react-i18next/issues/439)
|
|
1051
|
-
|
|
1052
|
-
### 7.6.1
|
|
1053
|
-
|
|
1054
|
-
- Allow to pass a function as parent for <Trans /> component [PR424](https://github.com/i18next/react-i18next/pull/424)
|
|
1055
|
-
|
|
1056
|
-
### 7.6.0
|
|
1057
|
-
|
|
1058
|
-
- adds tOptions to Trans component to support ICU
|
|
1059
|
-
- removes componentWillMount lifecycle method from I18n.js render props as it will get deprecated on react 16.3 [404](https://github.com/i18next/react-i18next/issues/404)
|
|
1060
|
-
|
|
1061
|
-
### 7.5.1
|
|
1062
|
-
|
|
1063
|
-
- Fix reference to props in constructor [PR411](https://github.com/i18next/react-i18next/pull/411)
|
|
1064
|
-
|
|
1065
|
-
### 7.5.0
|
|
1066
|
-
|
|
1067
|
-
- passes down tReady from translate hoc for cases you prefer showing a placeholder instead of default return null in case of wait: true and not yet loaded translations [PR400](https://github.com/i18next/react-i18next/pull/400)
|
|
1068
|
-
- I18n render prop calls with ready as third param
|
|
1069
|
-
|
|
1070
|
-
### 7.4.0
|
|
1071
|
-
|
|
1072
|
-
- enables setting prop `ns` on Trans component to override namespace passed by render prop or hoc
|
|
1073
|
-
- allows trans component with no children just returning the string getting from translations
|
|
1074
|
-
|
|
1075
|
-
### 7.3.6
|
|
1076
|
-
|
|
1077
|
-
- reorder selection of i18n in I18n render prop
|
|
1078
|
-
|
|
1079
|
-
### 7.3.5
|
|
1080
|
-
|
|
1081
|
-
- reorder selection of i18n in I18n render prop
|
|
1082
|
-
|
|
1083
|
-
### 7.3.4
|
|
1084
|
-
|
|
1085
|
-
- more save access to options in general
|
|
1086
|
-
|
|
1087
|
-
### 7.3.3
|
|
1088
|
-
|
|
1089
|
-
- more save access to options.react
|
|
1090
|
-
|
|
1091
|
-
### 7.3.2
|
|
1092
|
-
|
|
1093
|
-
- replace Interpolate PureComponent with Component to assert it gets rerendered on lng change
|
|
1094
|
-
|
|
1095
|
-
### 7.3.1
|
|
1096
|
-
|
|
1097
|
-
- remove react-dom from peer dependencies as module is used in react-native too
|
|
1098
|
-
|
|
1099
|
-
### 7.3.0
|
|
1100
|
-
|
|
1101
|
-
- Allow translate HOC to take a function for getting namespaces [372](https://github.com/i18next/react-i18next/pull/372)
|
|
1102
|
-
|
|
1103
|
-
### 7.2.0
|
|
1104
|
-
|
|
1105
|
-
- Add usePureComponent option [PR357](https://github.com/i18next/react-i18next/pull/357)
|
|
1106
|
-
- Render empty string on empty string as Trans child [PR364](https://github.com/i18next/react-i18next/pull/364)
|
|
1107
|
-
|
|
1108
|
-
### 7.1.1
|
|
1109
|
-
|
|
1110
|
-
- fixes: bring back Trans component t fc from context
|
|
1111
|
-
|
|
1112
|
-
### 7.1.0
|
|
1113
|
-
|
|
1114
|
-
- optional take i18n.t in Trans component if non t function passed in via props or context
|
|
1115
|
-
|
|
1116
|
-
### 7.0.2
|
|
1117
|
-
|
|
1118
|
-
- fixes rendering in Trans component in case of no parent
|
|
1119
|
-
|
|
1120
|
-
### 7.0.1
|
|
1121
|
-
|
|
1122
|
-
- working Trans component without the need of setting options.react
|
|
1123
|
-
|
|
1124
|
-
### 7.0.0
|
|
1125
|
-
|
|
1126
|
-
- **[BREAKING]** As with react 16 you can return multiple elements from render - based on that we do not need to return a wrapper any longer from Trans component.
|
|
1127
|
-
|
|
1128
|
-
Starting with v7.0.0 Trans component per default won't add a parent div around content passed as children. It will just return it's children.
|
|
1129
|
-
|
|
1130
|
-
You still got the option to set a parent if you prefer content being wrapped.
|
|
1131
|
-
|
|
1132
|
-
If you prefer wrapping for all your Trans components (or for backwards compatibility) you can set option `react.defaultTransParent` to an element on i18next init.
|
|
1133
|
-
|
|
1134
|
-
### 6.2.0
|
|
1135
|
-
|
|
1136
|
-
- adds hashTransKey function for custom key generation in case of not passing a key to Trans component and not like having the source value as key
|
|
1137
|
-
|
|
1138
|
-
### 6.1.0
|
|
1139
|
-
|
|
1140
|
-
- pre-check namespaces to avoid unnecessary initial `null` render [PR336](https://github.com/i18next/react-i18next/pull/336)
|
|
1141
|
-
|
|
1142
|
-
### 6.0.6
|
|
1143
|
-
|
|
1144
|
-
- remove PureComponent from Trans
|
|
1145
|
-
|
|
1146
|
-
### 6.0.5
|
|
1147
|
-
|
|
1148
|
-
- fixes support passing i18n and t to Trans as props [PR315](https://github.com/i18next/react-i18next/pull/315)
|
|
1149
|
-
|
|
1150
|
-
### 6.0.4
|
|
1151
|
-
|
|
1152
|
-
- fixes translate hoc build
|
|
1153
|
-
|
|
1154
|
-
### 6.0.3
|
|
1155
|
-
|
|
1156
|
-
- stop using PureComponent and use Component again...seems we get an issue with react-router v4 if using PureComponents
|
|
1157
|
-
- recreate t function on i18next updates so PureComponents relying on t get an update triggered
|
|
1158
|
-
|
|
1159
|
-
### 6.0.2
|
|
1160
|
-
|
|
1161
|
-
- rebuild needed cause of uppercasing for components name was not reflected in last build
|
|
1162
|
-
|
|
1163
|
-
### 6.0.1
|
|
1164
|
-
|
|
1165
|
-
- remove react from dependencies - not sure how that came into the package.json
|
|
1166
|
-
|
|
1167
|
-
### 6.0.0
|
|
1168
|
-
|
|
1169
|
-
- **[BREAKING]** removes options to set translateFuncName in translate hoc (was not supported in Trans and Interpolate component anyway)
|
|
1170
|
-
- setting i18n instance and defaults can now be done by i18next.use(reactI18nextModule) making I18nextProvider obsolete
|
|
1171
|
-
- As an alternative to the translate hoc you now can use the I18n component supporting a render props (for details about render props https://www.youtube.com/watch?v=BcVAq3YFiuc)
|
|
1172
|
-
|
|
1173
|
-
### 5.4.1
|
|
1174
|
-
|
|
1175
|
-
- fixes AST implementation for preact
|
|
1176
|
-
|
|
1177
|
-
### 5.4.0
|
|
1178
|
-
|
|
1179
|
-
- replaces regex used to parse nodes from string to an ast implementation solving [#298](https://github.com/i18next/react-i18next/issues/298)
|
|
1180
|
-
|
|
1181
|
-
### 5.3.0
|
|
1182
|
-
|
|
1183
|
-
- Pass extra parameters to Trans parent component
|
|
1184
|
-
|
|
1185
|
-
### 5.2.0
|
|
1186
|
-
|
|
1187
|
-
- adds module export in package.json pointing to es dist files.
|
|
1188
|
-
|
|
1189
|
-
### 5.1.0
|
|
1190
|
-
|
|
1191
|
-
- you now can set i18n instance on translate hoc once using setI18n:
|
|
1192
|
-
|
|
1193
|
-
```
|
|
1194
|
-
import translate from 'react-i18next';
|
|
1195
|
-
import i18n from './i18n';
|
|
1196
|
-
|
|
1197
|
-
translate.setI18n(i18n);
|
|
1198
|
-
```
|
|
1199
|
-
|
|
1200
|
-
### 5.0.0
|
|
1201
|
-
|
|
1202
|
-
- **[BREAKING]** we no longer accept wait to be specified on i18next init options like `{ wait: true }` -> all overrides for the translate hoc now have to be in child `react` like `{ react: { wait: true } }`
|
|
1203
|
-
- you now can override all the default options for translate hoc by setting them on i18next.init (excluding `translateFuncName` as we need that upfront to define childContextTypes)
|
|
1204
|
-
|
|
1205
|
-
```
|
|
1206
|
-
i18next.init({
|
|
1207
|
-
// ... other options
|
|
1208
|
-
react: {
|
|
1209
|
-
wait: false,
|
|
1210
|
-
withRef: false,
|
|
1211
|
-
bindI18n: 'languageChanged loaded',
|
|
1212
|
-
bindStore: 'added removed',
|
|
1213
|
-
nsMode: 'default'
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
```
|
|
1217
|
-
|
|
1218
|
-
- you now can override all defaults for translate hoc options (including `translateFuncName`) by using:
|
|
1219
|
-
|
|
1220
|
-
```
|
|
1221
|
-
import translate from 'react-i18next';
|
|
1222
|
-
|
|
1223
|
-
translate.setDefaults({
|
|
1224
|
-
wait: false,
|
|
1225
|
-
withRef: false,
|
|
1226
|
-
bindI18n: 'languageChanged loaded',
|
|
1227
|
-
bindStore: 'added removed',
|
|
1228
|
-
nsMode: 'default',
|
|
1229
|
-
translateFuncName: 't'
|
|
1230
|
-
});
|
|
1231
|
-
```
|
|
1232
|
-
|
|
1233
|
-
### 4.8.0
|
|
1234
|
-
|
|
1235
|
-
- make trans component work with preact and preact-compat
|
|
1236
|
-
- add preact example
|
|
1237
|
-
|
|
1238
|
-
### 4.7.0
|
|
1239
|
-
|
|
1240
|
-
- Trans component parent element configurable [PR278](https://github.com/i18next/react-i18next/pull/278)
|
|
1241
|
-
|
|
1242
|
-
### 4.6.4
|
|
1243
|
-
|
|
1244
|
-
- optimize generated defaultValue for components not having children
|
|
1245
|
-
|
|
1246
|
-
### 4.6.3
|
|
1247
|
-
|
|
1248
|
-
- move react, prop-types, ... to peerDependency again
|
|
1249
|
-
|
|
1250
|
-
### 4.6.2
|
|
1251
|
-
|
|
1252
|
-
- optimize trans component output
|
|
1253
|
-
|
|
1254
|
-
### 4.6.1
|
|
1255
|
-
|
|
1256
|
-
- fixes issue in changeLanguage on set via translate hoc ssr
|
|
1257
|
-
|
|
1258
|
-
### 4.6.0
|
|
1259
|
-
|
|
1260
|
-
- allow passing initialI18nStore and initialLanguage to I18nextProvider via props to support simpler ssr
|
|
1261
|
-
- adds a serverside rendering sample based on razzle
|
|
1262
|
-
|
|
1263
|
-
### 4.5.0
|
|
1264
|
-
|
|
1265
|
-
- pass i18n instance to context inside translate hoc to simplify usage in nextjs
|
|
1266
|
-
- options.react.exposeNamespace will expose namespace on data-i18next-options for consuming in editors
|
|
1267
|
-
|
|
1268
|
-
### 4.4.0
|
|
1269
|
-
|
|
1270
|
-
- introduces Trans component which enables you to translate nested components incl. interpolation by resulting in one translatable string. [learn more](https://react.i18next.com/components/trans-component.html)
|
|
1271
|
-
|
|
1272
|
-
### 4.3.0
|
|
1273
|
-
|
|
1274
|
-
- allow passing down initialI18nStore and initialLanguage to translate hoc to support ssr scenario better see example/nextjs
|
|
1275
|
-
|
|
1276
|
-
### 4.2.0
|
|
1277
|
-
|
|
1278
|
-
- allow passing i18next instance in translate hoc options makes integration in nextjs easier
|
|
1279
|
-
|
|
1280
|
-
### 4.1.2
|
|
1281
|
-
|
|
1282
|
-
- Remove workaround to set ready if there was no initialized signal [PR263](https://github.com/i18next/react-i18next/pull/263)
|
|
1283
|
-
|
|
1284
|
-
### 4.1.1
|
|
1285
|
-
|
|
1286
|
-
- Fix react-i18next to work with TypeScript [PR261](https://github.com/i18next/react-i18next/pull/261)
|
|
1287
|
-
|
|
1288
|
-
### 4.1.0
|
|
1289
|
-
|
|
1290
|
-
- eslint cleanup
|
|
1291
|
-
- a lot more tests
|
|
1292
|
-
- flag nsMode: 'fallback' -> uses namespaces passed to translate hoc as fallbacks [#254](https://github.com/i18next/react-i18next/issues/254)
|
|
1293
|
-
|
|
1294
|
-
### 4.0.0
|
|
1295
|
-
|
|
1296
|
-
- deploys 3.1.1 as possible breaking: fixes issue in fixing t function - pass only first namespace not an array of namespaces (access other namespaces like: this.props.t('namespace:key'))
|
|
1297
|
-
|
|
1298
|
-
### 3.1.2
|
|
1299
|
-
|
|
1300
|
-
- reverts last change
|
|
1301
|
-
|
|
1302
|
-
### 3.1.1
|
|
1303
|
-
|
|
1304
|
-
- fixes issue in fixing t function - pass only first namespace not an array of namespaces
|
|
1305
|
-
|
|
1306
|
-
### 3.1.0
|
|
1307
|
-
|
|
1308
|
-
- fixes wrong warning of missing prop on interpolate with format
|
|
1309
|
-
- the wait flag on translate hoc can now be set globally on i18next options `i18next.init({ wait: true })`
|
|
1310
|
-
|
|
1311
|
-
### 3.0.0
|
|
1312
|
-
|
|
1313
|
-
- [BREAKING] assert you install prop-types as a peerDependency based on changes in react >= 15.5.x
|
|
1314
|
-
- update react to 15.5.x use prop-types module to remove react warnings [PR248](https://github.com/i18next/react-i18next/pull/248)
|
|
1315
|
-
- update all dependencies
|
|
1316
|
-
- move react, prop-types to peerDependencies
|
|
1317
|
-
|
|
1318
|
-
### 2.2.3
|
|
1319
|
-
|
|
1320
|
-
- try not access store if undefined for hmr
|
|
1321
|
-
|
|
1322
|
-
### 2.2.1
|
|
1323
|
-
|
|
1324
|
-
- fixes validation for missing prop in interpolate component
|
|
1325
|
-
|
|
1326
|
-
### 2.2.0
|
|
1327
|
-
|
|
1328
|
-
- support formatting inside interpolate component
|
|
1329
|
-
|
|
1330
|
-
### 2.1.0
|
|
1331
|
-
|
|
1332
|
-
- tanslate hoc: expose the i18n instance via props
|
|
1333
|
-
|
|
1334
|
-
### 2.0.0
|
|
1335
|
-
|
|
1336
|
-
- translate hoc wait option asserts now that i18next is initialized before rendering (waits for lng detection)
|
|
1337
|
-
- [BREAKING] needs i18next >= 4.2.0
|
|
1338
|
-
|
|
1339
|
-
### 1.11.0
|
|
1340
|
-
|
|
1341
|
-
- pass style prop to interpolate component
|
|
1342
|
-
- define i18next as a peerDependency
|
|
1343
|
-
|
|
1344
|
-
### 1.10.1
|
|
1345
|
-
|
|
1346
|
-
- Suppresses required context type warning if passing i18n as a prop [PR205](https://github.com/i18next/react-i18next/pull/205)
|
|
1347
|
-
|
|
1348
|
-
### 1.10.0
|
|
1349
|
-
|
|
1350
|
-
- allow passing i18next instance via props to translate hoc [PR203](https://github.com/i18next/react-i18next/pull/203)
|
|
1351
|
-
|
|
1352
|
-
### 1.9.0
|
|
1353
|
-
|
|
1354
|
-
- adds options bindI18n, bindStore can be set to false or string of events to bind for triggering updates
|
|
1355
|
-
|
|
1356
|
-
### 1.8.0
|
|
1357
|
-
|
|
1358
|
-
- allows to set a className on interpolate component
|
|
1359
|
-
- update all dependencies and devDependencies
|
|
1360
|
-
|
|
1361
|
-
### 1.7.0
|
|
1362
|
-
|
|
1363
|
-
- add option to change t function name to something else [PR196](https://github.com/i18next/react-i18next/pull/196)
|
|
1364
|
-
- Added an option of using the <Interpolate /> with a raw HTML [PR195](https://github.com/i18next/react-i18next/pull/195)
|
|
1365
|
-
|
|
1366
|
-
### 1.6.3
|
|
1367
|
-
|
|
1368
|
-
- only trigger loaded namespaces if mounted
|
|
1369
|
-
|
|
1370
|
-
### 1.6.2
|
|
1371
|
-
|
|
1372
|
-
- update for react 15.2, eliminates Unknown Prop Warning
|
|
1373
|
-
|
|
1374
|
-
### 1.6.1
|
|
1375
|
-
|
|
1376
|
-
- Added conditional warning on unmatched variable during interpolation [PR 160](https://github.com/i18next/react-i18next/pull/160
|
|
1377
|
-
|
|
1378
|
-
### 1.6.0
|
|
1379
|
-
|
|
1380
|
-
- Hoist non react statics [PR 150](https://github.com/i18next/react-i18next/pull/150
|
|
1381
|
-
|
|
1382
|
-
### 1.5.3
|
|
1383
|
-
|
|
1384
|
-
- Handle i18next added and removed resource events [PR 150](https://github.com/i18next/react-i18next/pull/150
|
|
1385
|
-
|
|
1386
|
-
### 1.5.2
|
|
1387
|
-
|
|
1388
|
-
- move ns loading to did mount
|
|
1389
|
-
|
|
1390
|
-
### 1.5.1
|
|
1391
|
-
|
|
1392
|
-
- possible fix for HRM issues
|
|
1393
|
-
|
|
1394
|
-
### 1.5.0
|
|
1395
|
-
|
|
1396
|
-
- adds wait option, which delays initial rendering until translations are loaded
|
|
1397
|
-
|
|
1398
|
-
### 1.4.2
|
|
1399
|
-
|
|
1400
|
-
- possible fix for HRM issues
|
|
1401
|
-
|
|
1402
|
-
### 1.4.1
|
|
1403
|
-
|
|
1404
|
-
- change global name
|
|
1405
|
-
|
|
1406
|
-
### 1.4.0
|
|
1407
|
-
|
|
1408
|
-
- adds getWrappedInstance() to translate wrapper
|
|
1409
|
-
|
|
1410
|
-
### 1.3.0
|
|
1411
|
-
|
|
1412
|
-
- Support for universal apps / server-side rendering [PR 52](https://github.com/i18next/react-i18next/pull/52)
|
|
1413
|
-
|
|
1414
|
-
### 1.2.2
|
|
1415
|
-
|
|
1416
|
-
- fixes bower json - bower publish only
|
|
1417
|
-
|
|
1418
|
-
### 1.2.0
|
|
1419
|
-
|
|
1420
|
-
- change build to rollup
|
|
1421
|
-
|
|
1422
|
-
### 1.1.0
|
|
1423
|
-
|
|
1424
|
-
- added WrappedComponent property to translate wrapper [PR 15](https://github.com/i18next/react-i18next/pull/15)
|
|
1425
|
-
|
|
1426
|
-
### 1.0.1
|
|
1427
|
-
|
|
1428
|
-
- fixing export of index
|
|
1429
|
-
|
|
1430
|
-
### 1.0.0
|
|
1431
|
-
|
|
1432
|
-
- change package.json main to `/lib/index.js`
|
|
1433
|
-
- move build from gulp to npm run script
|