@kano/i18n
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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", |
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
43258