sheet-i18n 0.2.5-canary.3 → 0.2.5-canary.4
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 -1
- package/dist/index.d.ts +1 -0
- package/dist/react/index.d.ts +1 -3
- package/dist/react/index.js +3 -9
- package/dist/react/index.mjs +1 -4
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ This is the core package for sheet-based translations. You can use it to work wi
|
|
|
30
30
|
The **server-side exporter** subpackage allows you to interact with Google Sheets and export translations directly into your project. This is primarily used in server-side environments, such as Next.js API routes or other backend frameworks, where you want to fetch and store translations from a Google Spreadsheet to be served to clients or used within your server application.
|
|
31
31
|
|
|
32
32
|
```jsx
|
|
33
|
-
import { googleSheetExporter } from 'sheet-i18n';
|
|
33
|
+
import { googleSheetExporter } from 'sheet-i18n/exporter';
|
|
34
34
|
|
|
35
35
|
const exporter = await googleSheetExporter({
|
|
36
36
|
credentials: {
|
package/dist/index.d.ts
CHANGED
package/dist/react/index.d.ts
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
6
|
var __copyProps = (to, from, except, desc) => {
|
|
11
7
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
8
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,16 +11,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
11
|
}
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
16
|
|
|
20
17
|
// src/react/index.ts
|
|
21
18
|
var react_exports = {};
|
|
22
|
-
__export(react_exports, {
|
|
23
|
-
test: () => test
|
|
24
|
-
});
|
|
25
19
|
module.exports = __toCommonJS(react_exports);
|
|
26
|
-
|
|
20
|
+
__reExport(react_exports, require("@sheet-i18n/react"), module.exports);
|
|
27
21
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
22
|
0 && (module.exports = {
|
|
29
|
-
|
|
23
|
+
...require("@sheet-i18n/react")
|
|
30
24
|
});
|
package/dist/react/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheet-i18n",
|
|
3
|
-
"version": "0.2.5-canary.
|
|
3
|
+
"version": "0.2.5-canary.4",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@sheet-i18n/exporter": "0.2.1"
|
|
35
|
+
"@sheet-i18n/exporter": "0.2.1",
|
|
36
|
+
"@sheet-i18n/react": "0.1.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"tsup": "^6.0.0",
|