jupiter-dynamic-forms 1.9.9 → 1.10.0

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,38 @@
1
+ export type TranslationKey = string;
2
+ /**
3
+ * I18n utility class for managing translations
4
+ */
5
+ export declare class I18n {
6
+ private static currentLanguage;
7
+ /**
8
+ * Set the current language
9
+ * @param language Language code ('en' or 'nl')
10
+ */
11
+ static setLanguage(language: string): void;
12
+ /**
13
+ * Get the current language
14
+ */
15
+ static getLanguage(): string;
16
+ /**
17
+ * Translate a key to the current language
18
+ * @param key Translation key in dot notation (e.g., 'form.submit')
19
+ * @param params Optional parameters to replace in the translation
20
+ * @returns Translated string
21
+ */
22
+ static t(key: string, params?: Record<string, string | number>): string;
23
+ /**
24
+ * Interpolate parameters into a string
25
+ * Supports {{paramName}} syntax
26
+ */
27
+ private static interpolate;
28
+ /**
29
+ * Check if a translation exists for a key
30
+ */
31
+ static has(key: string): boolean;
32
+ /**
33
+ * Get all available languages
34
+ */
35
+ static getAvailableLanguages(): string[];
36
+ }
37
+ export declare const t: (key: string, params?: Record<string, string | number>) => string;
38
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/utils/i18n.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAWpC;;GAEG;AACH,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAC,eAAe,CAAgB;IAE9C;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAS1C;;OAEG;IACH,MAAM,CAAC,WAAW,IAAI,MAAM;IAI5B;;;;;OAKG;IACH,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM;IAsBvE;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAM1B;;OAEG;IACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAehC;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,MAAM,EAAE;CAGzC;AAGD,eAAO,MAAM,CAAC,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,WAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupiter-dynamic-forms",
3
- "version": "1.9.9",
3
+ "version": "1.10.0",
4
4
  "description": "Framework-agnostic dynamic form builder for XBRL entrypoints using Web Components. Supports Angular 14+, React, Vue, and vanilla HTML.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",