@digitaldefiance/i18n-lib 1.0.5 → 1.0.6

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/types.d.ts CHANGED
@@ -8,7 +8,9 @@ export interface I18nConfig<TStringKey extends string, TLanguage extends string>
8
8
  strings: MasterStringsCollection<TStringKey, TLanguage>;
9
9
  defaultLanguage: TLanguage;
10
10
  languageCodes: LanguageCodeCollection<TLanguage>;
11
- constants?: Record<string, string | number>;
11
+ constants?: Record<string, string | number> | {
12
+ [key: string]: string | number | RegExp | bigint;
13
+ };
12
14
  }
13
15
  export interface I18nContext<TLanguage extends string> {
14
16
  language: TLanguage;
package/dist/utils.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export declare function replaceVariables(str: string, vars?: Record<string, string | number>, constants?: Record<string, string | number>): string;
1
+ export declare function replaceVariables(str: string, vars?: Record<string, string | number>, constants?: Record<string, string | number> | {
2
+ [key: string]: string | number | RegExp | bigint;
3
+ }): string;
2
4
  export declare function isTemplate(key: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/i18n-lib",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Generic i18n library with enum translation support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",