@stacksjs/i18n 0.75.520 → 0.75.524

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.
@@ -55,16 +55,18 @@ export declare function useI18n(options?: Partial<I18nConfig>): I18nInstance;
55
55
  * Configure the global i18n instance
56
56
  */
57
57
  export declare function configure(options: Partial<I18nConfig>): void;
58
- /** @defaultValue 'en' */
59
- declare let fallbackLocale: string;
60
58
  /**
61
59
  * Alias for t()
62
60
  */
63
- export declare const trans: unknown;
61
+ export declare const trans: typeof t;
64
62
  /**
65
63
  * I18n class for creating isolated instances
66
64
  */
67
65
  export declare class I18n implements I18nInstance {
66
+ private _locale;
67
+ private _fallbackLocale;
68
+ private _messages;
69
+ private _config;
68
70
  constructor(options?: Partial<I18nConfig>);
69
71
  get locale(): string;
70
72
  set locale(value: string);
@@ -78,4 +80,9 @@ export declare class I18n implements I18nInstance {
78
80
  addTranslations: unknown;
79
81
  d: unknown;
80
82
  n: unknown;
83
+ private translate;
84
+ private translatePlural;
85
+ private hasTranslation;
86
+ private getMessage;
87
+ private interpolate;
81
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/i18n",
3
- "version": "0.75.520",
3
+ "version": "0.75.524",
4
4
  "description": "Internationalization system for Stacks.js applications",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -36,13 +36,13 @@
36
36
  "prepublishOnly": "bun run build"
37
37
  },
38
38
  "dependencies": {
39
- "@stacksjs/config": "0.75.520",
40
- "@stacksjs/logging": "0.75.520",
41
- "@stacksjs/path": "0.75.520",
39
+ "@stacksjs/config": "0.75.524",
40
+ "@stacksjs/logging": "0.75.524",
41
+ "@stacksjs/path": "0.75.524",
42
42
  "@stacksjs/ts-i18n": "^0.1.11"
43
43
  },
44
44
  "devDependencies": {
45
- "@stacksjs/development": "0.75.520"
45
+ "@stacksjs/development": "0.75.524"
46
46
  },
47
47
  "publishConfig": {
48
48
  "exports": {