@digitaldefiance/i18n-lib 1.0.6 → 1.0.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/README.md CHANGED
@@ -110,3 +110,7 @@ const statusText = i18n.translateEnum(Status, Status.Active, MyLanguages.Spanish
110
110
  ## License
111
111
 
112
112
  MIT
113
+
114
+ ## Repository
115
+
116
+ [https://github.com/Digital-Defiance/i18n-lib](https://github.com/Digital-Defiance/i18n-lib)
package/dist/types.d.ts CHANGED
@@ -8,9 +8,7 @@ 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> | {
12
- [key: string]: string | number | RegExp | bigint;
13
- };
11
+ constants?: Record<string, string | number>;
14
12
  }
15
13
  export interface I18nContext<TLanguage extends string> {
16
14
  language: TLanguage;
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,2 @@
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;
1
+ export declare function replaceVariables(str: string, vars?: Record<string, string | number>, constants?: Record<string, string | number>): string;
4
2
  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.6",
3
+ "version": "1.0.7",
4
4
  "description": "Generic i18n library with enum translation support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",