@markuplint/i18n
Advanced tools
Comparing version 1.1.0 to 1.2.0-alpha.33
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): Promise<I18n>; | ||
localeSet: LocaleSet | null; | ||
private constructor(); | ||
translator(): Translator; | ||
private static _singleton; | ||
static create(localeSet: LocaleSet | null): I18n; | ||
localeSet: LocaleSet | null; | ||
private constructor(); | ||
translator(): Translator; | ||
} |
@@ -8,3 +8,3 @@ "use strict"; | ||
} | ||
static async create(localeSet) { | ||
static create(localeSet) { | ||
if (!I18n._singleton) { | ||
@@ -11,0 +11,0 @@ I18n._singleton = new I18n(localeSet); |
{ | ||
"name": "@markuplint/i18n", | ||
"version": "1.1.0", | ||
"version": "1.2.0-alpha.33+c47a79f", | ||
"description": "HTML parser for markuplint", | ||
@@ -18,3 +18,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "a7fbdff7d01567d5a184e440a6f12f66f710fb54" | ||
"gitHead": "c47a79f9a03f3e135d97a0fb13c87805be0738d6" | ||
} |
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
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
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
156951
2
1