@markuplint/i18n
Advanced tools
Comparing version 3.0.0-alpha.6 to 3.0.0-canary.25
@@ -6,4 +6,2 @@ 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-alpha.6", | ||
"version": "3.0.0-canary.25+382d1365", | ||
"description": "HTML parser for markuplint", | ||
@@ -18,3 +18,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "b185a06d4ea09a1bf32458f7be4abe510eb57b89" | ||
"gitHead": "382d13653071bd02210d5430403d1a87c840398c" | ||
} |
# @markuplint/i18n | ||
[![npm version](https://badge.fury.io/js/%40markuplint%2Fi18n.svg)](https://www.npmjs.com/package/@markuplint/i18n) | ||
[![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=main)](https://travis-ci.org/markuplint/markuplint) | ||
[![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=main)](https://coveralls.io/github/markuplint/markuplint?branch=main) | ||
## Install | ||
[`markuplint`](https://www.npmjs.com/package/markuplint) package includes this package. | ||
<details> | ||
<summary>If you are installing purposely, how below:</summary> | ||
```sh | ||
@@ -13,4 +16,7 @@ $ npm install @markuplint/i18n | ||
$ yarn add @markuplint/i18n | ||
``` | ||
</details> | ||
## API | ||
@@ -75,3 +81,3 @@ | ||
⚠️ It is experimental. | ||
:warning: It is experimental. | ||
@@ -78,0 +84,0 @@ ```ts |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
172
91710
673
1