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 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
@@ -36,6 +36,7 @@ export interface I18nConfig {
36
36
  pages?: Record<string, PageValue>;
37
37
  logger?: I18nLogger;
38
38
  staticsHoc?: Function;
39
+ extensionsRgx?: string;
39
40
  loader?: boolean;
40
41
  logBuild?: boolean;
41
42
  revalidate?: number;
@@ -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 (query.count > 0 && getDicValue(dic, pluralKey, config) !== undefined) {
97
+ if (getDicValue(dic, pluralKey, config) !== undefined) {
98
98
  return pluralKey;
99
99
  }
100
100
  var nestedNumKey = "".concat(key, ".").concat(query.count);
@@ -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 (query.count > 0 && getDicValue(dic, pluralKey, config) !== undefined) {
94
+ if (getDicValue(dic, pluralKey, config) !== undefined) {
95
95
  return pluralKey;
96
96
  }
97
97
  var nestedNumKey = "".concat(key, ".").concat(query.count);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-translate",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Tiny and powerful i18n tools (Next plugin + API) to translate your Next.js pages.",
5
5
  "license": "MIT",
6
6
  "keywords": [