next-translate 1.3.4 → 1.3.5
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 +1 -0
- package/index.d.ts +1 -0
- package/lib/cjs/transCore.js +1 -1
- package/lib/esm/transCore.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -960,6 +960,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
960
960
|
<td align="center"><a href="http://www.dan-needham.com"><img src="https://avatars.githubusercontent.com/u/1122983?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dan Needham</b></sub></a><br /><a href="https://github.com/vinissimus/next-translate/commits?author=dndhm" title="Code">💻</a> <a href="https://github.com/vinissimus/next-translate/commits?author=dndhm" title="Tests">⚠️</a> <a href="https://github.com/vinissimus/next-translate/commits?author=dndhm" title="Documentation">📖</a></td>
|
|
961
961
|
<td align="center"><a href="https://www.youtube.com/BrunoAntunesPT"><img src="https://avatars.githubusercontent.com/u/9042965?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bruno Antunes</b></sub></a><br /><a href="https://github.com/vinissimus/next-translate/commits?author=bmvantunes" title="Code">💻</a></td>
|
|
962
962
|
<td align="center"><a href="https://github.com/kaan-atakan"><img src="https://avatars.githubusercontent.com/u/56063979?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaan Atakan</b></sub></a><br /><a href="https://github.com/vinissimus/next-translate/commits?author=kaan-atakan" title="Code">💻</a></td>
|
|
963
|
+
<td align="center"><a href="https://github.com/groomain"><img src="https://avatars.githubusercontent.com/u/3601848?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Romain</b></sub></a><br /><a href="https://github.com/vinissimus/next-translate/commits?author=groomain" title="Code">💻</a></td>
|
|
963
964
|
</tr>
|
|
964
965
|
</table>
|
|
965
966
|
|
package/index.d.ts
CHANGED
package/lib/cjs/transCore.js
CHANGED
|
@@ -94,7 +94,7 @@ function plural(pluralRules, dic, key, config, query) {
|
|
|
94
94
|
if (getDicValue(dic, numKey, config) !== undefined)
|
|
95
95
|
return numKey;
|
|
96
96
|
var pluralKey = "".concat(key, "_").concat(pluralRules.select(query.count));
|
|
97
|
-
if (
|
|
97
|
+
if (getDicValue(dic, pluralKey, config) !== undefined) {
|
|
98
98
|
return pluralKey;
|
|
99
99
|
}
|
|
100
100
|
var nestedNumKey = "".concat(key, ".").concat(query.count);
|
package/lib/esm/transCore.js
CHANGED
|
@@ -91,7 +91,7 @@ function plural(pluralRules, dic, key, config, query) {
|
|
|
91
91
|
if (getDicValue(dic, numKey, config) !== undefined)
|
|
92
92
|
return numKey;
|
|
93
93
|
var pluralKey = "".concat(key, "_").concat(pluralRules.select(query.count));
|
|
94
|
-
if (
|
|
94
|
+
if (getDicValue(dic, pluralKey, config) !== undefined) {
|
|
95
95
|
return pluralKey;
|
|
96
96
|
}
|
|
97
97
|
var nestedNumKey = "".concat(key, ".").concat(query.count);
|