generaltranslation 6.3.2 → 7.0.0-alpha.1

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.
@@ -0,0 +1,4 @@
1
+ export declare const noTargetLocaleProvidedError: (functionName: string) => string;
2
+ export declare const noSourceLocaleProvidedError: (functionName: string) => string;
3
+ export declare const invalidLocaleError: (locale: string) => string;
4
+ export declare const invalidLocalesError: (locales: string[]) => string;
package/dist/types.d.ts CHANGED
@@ -26,6 +26,7 @@ export type Metadata = {
26
26
  actionType?: 'standard' | 'fast' | string;
27
27
  [key: string]: any;
28
28
  };
29
+ export type FormatVariables = Record<string, string | number | boolean | null | undefined | Date>;
29
30
  export type Update = {
30
31
  type: 'content';
31
32
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "6.3.2",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "dist/index.cjs.min.cjs",
6
6
  "module": "dist/index.esm.min.mjs",
@@ -43,6 +43,7 @@
43
43
  "homepage": "https://generaltranslation.com/",
44
44
  "devDependencies": {
45
45
  "@rollup/plugin-commonjs": "^28.0.1",
46
+ "@rollup/plugin-node-resolve": "^16.0.1",
46
47
  "@rollup/plugin-terser": "^0.4.4",
47
48
  "@rollup/plugin-typescript": "^12.1.1",
48
49
  "@types/crypto-js": "^4.2.2",
@@ -57,7 +58,8 @@
57
58
  },
58
59
  "dependencies": {
59
60
  "crypto-js": "^4.2.0",
60
- "fast-json-stable-stringify": "^2.1.0"
61
+ "fast-json-stable-stringify": "^2.1.0",
62
+ "intl-messageformat": "^10.7.16"
61
63
  },
62
64
  "exports": {
63
65
  ".": {
@@ -1 +0,0 @@
1
- export {};
File without changes
File without changes