svelte-i18n
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -0,1 +1,10 @@ | ||
## [3.2.4](https://github.com/kaisermann/svelte-i18n/compare/v3.2.3...v3.2.4) (2020-11-07) | ||
### Bug Fixes | ||
* 🐛 possible interpolation value types ([0caaead](https://github.com/kaisermann/svelte-i18n/commit/0caaead4789a62daef4ea73361506a9f135b80e7)) | ||
## [3.2.3](https://github.com/kaisermann/svelte-i18n/compare/v3.2.2...v3.2.3) (2020-11-06) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "svelte-i18n", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"main": "dist/runtime.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/runtime.esm.js", |
@@ -50,1 +50,2 @@ [![npm version](https://badge.fury.io/js/svelte-i18n.svg)](https://badge.fury.io/js/svelte-i18n) ![](https://github.com/kaisermann/svelte-i18n/workflows/CI/badge.svg) | ||
- [Sapper Template](https://github.com/kaisermann/sapper-template-i18n) | ||
- [i18n VSCode extension (3rd party)](https://github.com/antfu/i18n-ally) |
@@ -1,2 +0,2 @@ | ||
import { Formats } from 'intl-messageformat'; | ||
import type { FormatXMLElementFn, Formats } from 'intl-messageformat'; | ||
export interface LocaleDictionary { | ||
@@ -8,2 +8,3 @@ [key: string]: LocaleDictionary | string | Array<string | LocaleDictionary>; | ||
}; | ||
export declare type InterpolationValues = Record<string, string | number | boolean | Date | FormatXMLElementFn<unknown> | null | undefined> | undefined; | ||
export interface MessageObject { | ||
@@ -14,3 +15,3 @@ id?: string; | ||
default?: string; | ||
values?: Record<string, string | number | Date>; | ||
values?: InterpolationValues; | ||
} | ||
@@ -17,0 +18,0 @@ export declare type MessageFormatter = (id: string | MessageObject, options?: MessageObject) => string | unknown; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42528
215
51