@itrocks/translate 0.0.3 → 0.0.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/cjs/translate.d.ts +2 -3
- package/cjs/translate.js +0 -3
- package/esm/translate.d.ts +2 -3
- package/esm/translate.js +1 -2
- package/package.json +2 -1
package/cjs/translate.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare function lang(): string;
|
|
|
5
5
|
export type Options = {
|
|
6
6
|
ucFirst?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export default function tr(text: string, parts?: string[], options?: Options): string;
|
|
8
|
+
export declare function tr(text: string, options: Options): string;
|
|
9
|
+
export declare function tr(text: string, parts?: string[], options?: Options): string;
|
|
11
10
|
export declare function trInit(lang: string, file: string): void;
|
package/cjs/translate.js
CHANGED
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.translations = exports.expressions = exports.DefaultOptions = void 0;
|
|
4
4
|
exports.lang = lang;
|
|
5
|
-
exports.default = tr;
|
|
6
|
-
exports.tr = tr;
|
|
7
|
-
exports.default = tr;
|
|
8
5
|
exports.tr = tr;
|
|
9
6
|
exports.trInit = trInit;
|
|
10
7
|
const promises_1 = require("node:fs/promises");
|
package/esm/translate.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare function lang(): string;
|
|
|
5
5
|
export type Options = {
|
|
6
6
|
ucFirst?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export default function tr(text: string, parts?: string[], options?: Options): string;
|
|
8
|
+
export declare function tr(text: string, options: Options): string;
|
|
9
|
+
export declare function tr(text: string, parts?: string[], options?: Options): string;
|
|
11
10
|
export declare function trInit(lang: string, file: string): void;
|
package/esm/translate.js
CHANGED
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"description": "Manage dynamic string translations with support for variables and composite patterns",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/node": "^22.10",
|
|
12
|
+
"@types/papaparse": "^5.3",
|
|
12
13
|
"typescript": "~5.6"
|
|
13
14
|
},
|
|
14
15
|
"engines": {
|
|
@@ -49,5 +50,5 @@
|
|
|
49
50
|
"build:esm": "tsc -p tsconfig.esm.json && node esm/esm"
|
|
50
51
|
},
|
|
51
52
|
"types": "esm/translate.js",
|
|
52
|
-
"version": "0.0.
|
|
53
|
+
"version": "0.0.5"
|
|
53
54
|
}
|