@c9up/rosetta 0.1.6 → 0.1.7
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/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
- package/src/index.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -6,4 +6,11 @@ export { FileSystemLoader } from "./loaders/FileSystemLoader.js";
|
|
|
6
6
|
export { isNativeAvailable } from "./native.js";
|
|
7
7
|
export type { LocaleResolverInput, MessageCatalog, MessageTree, NumberFormatData, RosettaLoader, RosettaLocale, RosettaOptions, TranslateOptions, TranslationParams, } from "./Rosetta.js";
|
|
8
8
|
export { Rosetta } from "./Rosetta.js";
|
|
9
|
+
export type { RosettaProviderConfig } from "./RosettaProvider.js";
|
|
10
|
+
import type { RosettaProviderConfig } from "./RosettaProvider.js";
|
|
11
|
+
/**
|
|
12
|
+
* Author-time config helper for `config/i18n.ts` — AdonisJS i18n `defineConfig`
|
|
13
|
+
* parity. Identity at runtime; the generic preserves literal types for inference.
|
|
14
|
+
*/
|
|
15
|
+
export declare function defineConfig<T extends RosettaProviderConfig>(config: T): T;
|
|
9
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,qBAAqB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAE1E"}
|
package/dist/index.js
CHANGED
|
@@ -4,4 +4,11 @@
|
|
|
4
4
|
export { FileSystemLoader } from "./loaders/FileSystemLoader.js";
|
|
5
5
|
export { isNativeAvailable } from "./native.js";
|
|
6
6
|
export { Rosetta } from "./Rosetta.js";
|
|
7
|
+
/**
|
|
8
|
+
* Author-time config helper for `config/i18n.ts` — AdonisJS i18n `defineConfig`
|
|
9
|
+
* parity. Identity at runtime; the generic preserves literal types for inference.
|
|
10
|
+
*/
|
|
11
|
+
export function defineConfig(config) {
|
|
12
|
+
return config;
|
|
13
|
+
}
|
|
7
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAkC,MAAS;IACtE,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
Binary file
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -17,3 +17,14 @@ export type {
|
|
|
17
17
|
TranslationParams,
|
|
18
18
|
} from "./Rosetta.js";
|
|
19
19
|
export { Rosetta } from "./Rosetta.js";
|
|
20
|
+
export type { RosettaProviderConfig } from "./RosettaProvider.js";
|
|
21
|
+
|
|
22
|
+
import type { RosettaProviderConfig } from "./RosettaProvider.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Author-time config helper for `config/i18n.ts` — AdonisJS i18n `defineConfig`
|
|
26
|
+
* parity. Identity at runtime; the generic preserves literal types for inference.
|
|
27
|
+
*/
|
|
28
|
+
export function defineConfig<T extends RosettaProviderConfig>(config: T): T {
|
|
29
|
+
return config;
|
|
30
|
+
}
|