@markuplint/i18n
Advanced tools
Comparing version 3.0.0-rc.3 to 3.0.0-rc.4
@@ -6,2 +6,4 @@ import type { LocaleSet, Primitive, Translator } from './types'; | ||
*/ | ||
export declare function taggedTemplateTranslator(localeSet?: LocaleSet): (strings: TemplateStringsArray, ...keys: Primitive[]) => string; | ||
export declare function taggedTemplateTranslator( | ||
localeSet?: LocaleSet, | ||
): (strings: TemplateStringsArray, ...keys: Primitive[]) => string; |
export type Translator = (messageTmpl: string | string[], ...keywords: Primitive[]) => string; | ||
export type LocaleSet = { | ||
locale: string; | ||
listFormat?: ListFormat; | ||
keywords?: LocalesKeywords; | ||
sentences?: LocalesKeywords; | ||
locale: string; | ||
listFormat?: ListFormat; | ||
keywords?: LocalesKeywords; | ||
sentences?: LocalesKeywords; | ||
}; | ||
export type ListFormat = { | ||
quoteStart: string; | ||
quoteEnd: string; | ||
separator: string; | ||
quoteStart: string; | ||
quoteEnd: string; | ||
separator: string; | ||
}; | ||
export type Primitive = string | number | boolean; | ||
export type LocalesKeywords = { | ||
[messageId: string]: string | void; | ||
[messageId: string]: string | void; | ||
}; |
{ | ||
"name": "@markuplint/i18n", | ||
"version": "3.0.0-rc.3", | ||
"version": "3.0.0-rc.4", | ||
"description": "HTML parser for markuplint", | ||
@@ -18,3 +18,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "6cb4f1656d4cd7554891006181c1f79cea4d9bfa" | ||
"gitHead": "6187135f1c3522eee13cc1e7e1e8501b0fbfa876" | ||
} |
@@ -12,3 +12,3 @@ # @markuplint/i18n | ||
```sh | ||
```shell | ||
$ npm install @markuplint/i18n | ||
@@ -15,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
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
677
82851