gt-react 7.0.6 → 7.0.8

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = getPluralBranch;
4
- var generaltranslation_1 = require("generaltranslation");
4
+ var internal_1 = require("generaltranslation/internal");
5
5
  /**
6
6
  * Main function to get the appropriate branch based on the provided number and branches.
7
7
  *
@@ -13,7 +13,7 @@ function getPluralBranch(n, locales, branches) {
13
13
  var branchName = '';
14
14
  var branch = null;
15
15
  if (typeof n === 'number' && !branch && branches)
16
- branchName = (0, generaltranslation_1.getPluralForm)(n, Object.keys(branches), locales);
16
+ branchName = (0, internal_1.getPluralForm)(n, Object.keys(branches), locales);
17
17
  if (branchName && !branch)
18
18
  branch = branches[branchName];
19
19
  return branch;
@@ -1 +1 @@
1
- {"version":3,"file":"getPluralBranch.js","sourceRoot":"","sources":["../../../src/branches/plurals/getPluralBranch.ts"],"names":[],"mappings":";;AASA,kCAMC;AAfD,yDAAmD;AAEnD;;;;;;GAMG;AACH,SAAwB,eAAe,CAAC,CAAS,EAAE,OAAiB,EAAE,QAA6B;IAC/F,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,MAAM,IAAI,QAAQ;QAAE,UAAU,GAAG,IAAA,kCAAa,EAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAQ,EAAE,OAAO,CAAC,CAAC;IACvH,IAAI,UAAU,IAAI,CAAC,MAAM;QAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACzD,OAAO,MAAM,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"getPluralBranch.js","sourceRoot":"","sources":["../../../src/branches/plurals/getPluralBranch.ts"],"names":[],"mappings":";;AASA,kCAMC;AAfD,wDAA4D;AAE5D;;;;;;GAMG;AACH,SAAwB,eAAe,CAAC,CAAS,EAAE,OAAiB,EAAE,QAA6B;IAC/F,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,MAAM,IAAI,QAAQ;QAAE,UAAU,GAAG,IAAA,wBAAa,EAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAQ,EAAE,OAAO,CAAC,CAAC;IACvH,IAAI,UAAU,IAAI,CAAC,MAAM;QAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACzD,OAAO,MAAM,CAAC;AAClB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "7.0.6",
3
+ "version": "7.0.8",
4
4
  "description": "A React library for automatic internationalization.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,8 @@
28
28
  "@types/node": "^20.14.9",
29
29
  "@types/react": "^18.3.3",
30
30
  "@types/react-dom": "^18.3.0",
31
- "typescript": "^5.5.2"
31
+ "typescript": "^5.5.2",
32
+ "gt-react-cli": "^1.1.8"
32
33
  },
33
34
  "exports": {
34
35
  ".": {
@@ -74,6 +75,6 @@
74
75
  ],
75
76
  "dependencies": {
76
77
  "@generaltranslation/supported-locales": "^0.0.4",
77
- "generaltranslation": "^5.0.3"
78
+ "generaltranslation": "^5.0.4"
78
79
  }
79
80
  }