Socket
Socket
Sign inDemoInstall

@kano/i18n

Package Overview
Dependencies
Maintainers
21
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kano/i18n - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/index.d.ts

@@ -18,3 +18,3 @@ export interface IMessageDB {

*/
export declare function localize(key: string, fallback?: string): string | undefined;
export declare function localize(key: string, fallback?: string): string;
export declare const _: typeof localize;

@@ -21,0 +21,0 @@ /**

@@ -69,3 +69,3 @@ ;

export function localize(key, fallback) {
return debug ? `\${${key}}` : db[key] || fallback;
return debug ? `\${${key}}` : db[key] || fallback || '';
}

@@ -72,0 +72,0 @@ // Alias for localize

@@ -7,3 +7,3 @@ declare type Constructor<T> = new (...args: any[]) => T;

new (...args: any[]): {
localize(key: string, fallback?: string | undefined): string | undefined;
localize(key: string, fallback?: string | undefined): string;
accessKey: string;

@@ -10,0 +10,0 @@ readonly accessKeyLabel: string;

{
"name": "@kano/i18n",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:KanoComputing/web-i18n.git",

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