@dropins/tools 1.4.1-alpha002 → 1.4.1-alpha003

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.
@@ -19,6 +19,7 @@ export * from './types';
19
19
  export * from './slot';
20
20
  export * from './vcomponent';
21
21
  export * from './image-params-keymap';
22
+ export * from './locale-config';
22
23
  export * from './is-number';
23
24
  export * from './deviceUtils';
24
25
  export * from './get-path-value';
@@ -51,6 +51,7 @@ export declare class initializers {
51
51
  static _imageParamsKeyMap: {
52
52
  [key: string]: string;
53
53
  } | undefined;
54
+ static _globalLocale: string | undefined;
54
55
  /**
55
56
  * Registers a new initializer. If the initializers have already been mounted,it immediately binds the event listeners and initializes the API for the new initializer.
56
57
  * @param initializer - The initializer to register.
@@ -76,6 +77,11 @@ export declare class initializers {
76
77
  static setImageParamKeys(params: {
77
78
  [key: string]: any;
78
79
  }): void;
80
+ /**
81
+ * Sets the global locale. This locale is used by components that need consistent formatting regardless of the user's browser locale.
82
+ * @param locale - The locale string (e.g., 'en-US', 'es-MX', 'fr-FR').
83
+ */
84
+ static setGlobalLocale(locale: string): void;
79
85
  }
80
86
  export {};
81
87
  //# sourceMappingURL=initializer.d.ts.map
@@ -0,0 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+ export declare const setGlobalLocale: (value: typeof this._locale) => void, getGlobalLocale: () => string | undefined;
10
+ //# sourceMappingURL=locale-config.d.ts.map