@markuplint/i18n
Advanced tools
Comparing version 1.2.0-alpha.33 to 1.2.0
export declare type Primitive = string | number | boolean; | ||
export declare type Translator = (messageTmpl: string, ...keywords: Primitive[]) => string; | ||
export interface LocaleSet { | ||
keywords: LocalesKeywords; | ||
[messageId: string]: string | void | LocalesKeywords; | ||
keywords: LocalesKeywords; | ||
[messageId: string]: string | void | LocalesKeywords; | ||
} | ||
export interface LocalesKeywords { | ||
[messageId: string]: string | void; | ||
[messageId: string]: string | void; | ||
} | ||
export declare class I18n { | ||
private static _singleton; | ||
static create(localeSet: LocaleSet | null): I18n; | ||
localeSet: LocaleSet | null; | ||
private constructor(); | ||
translator(): Translator; | ||
private static _singleton; | ||
static create(localeSet: LocaleSet | null): I18n; | ||
localeSet: LocaleSet | null; | ||
private constructor(); | ||
translator(): Translator; | ||
} |
{ | ||
"name": "@markuplint/i18n", | ||
"version": "1.2.0-alpha.33+c47a79f", | ||
"version": "1.2.0", | ||
"description": "HTML parser for markuplint", | ||
@@ -18,3 +18,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "c47a79f9a03f3e135d97a0fb13c87805be0738d6" | ||
"gitHead": "94955520e9fad6a45e8831c47f6b8b342b77efdc" | ||
} |
# @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=master)](https://travis-ci.org/markuplint/markuplint) | ||
[![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=master)](https://coveralls.io/github/markuplint/markuplint?branch=master) | ||
[![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) | ||
@@ -20,3 +20,3 @@ ## Install | ||
``` | ||
$ git clone git@github.com:markuplint/markuplint.git -b master | ||
$ git clone git@github.com:markuplint/markuplint.git -b main | ||
$ yarn | ||
@@ -29,2 +29,2 @@ $ yarn build | ||
Copyright © 2020 markuplint. Under the MIT License. | ||
Copyright © 2021 markuplint. Under the MIT License. |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
46357