@ribajs/i18n
Advanced tools
Comparing version 0.18.5 to 0.18.6
{ | ||
"name": "@ribajs/i18n", | ||
"description": "Internationalization extension for Riba.js", | ||
"version": "0.18.5", | ||
"version": "0.18.6", | ||
"author": "Pascal Garber <pascal@jumplink.eu>", | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/ribajs/riba/tree/master/packages/i18n", |
@@ -10,3 +10,3 @@ import { Debug } from '@ribajs/core'; | ||
public static getInstance(id: string = 'main') { | ||
public static getInstance(id: string) { | ||
return LocalesStaticService.instances[id]; | ||
@@ -27,4 +27,7 @@ } | ||
constructor(protected locales: any, protected id: string = 'main', doNotTranslateDefaultLanguage: boolean = false) { | ||
constructor(protected locales: any, protected id?: string, doNotTranslateDefaultLanguage: boolean = false) { | ||
super(doNotTranslateDefaultLanguage); | ||
if (!id) { | ||
id = 'main'; | ||
} | ||
@@ -31,0 +34,0 @@ this.locales = locales; |
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
53242
1391