Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/i18n

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/i18n - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0-alpha.33

16

lib/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc