@ribajs/i18n
Advanced tools
Comparing version 0.17.0 to 0.17.2
{ | ||
"name": "@ribajs/i18n", | ||
"description": "Internationalization extension for Riba.js", | ||
"version": "0.17.0", | ||
"version": "0.17.2", | ||
"author": "Pascal Garber <pascal@jumplink.eu>", | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/ribajs/riba/tree/master/packages/i18n", |
@@ -26,2 +26,6 @@ import { Utils, EventDispatcher, Debug } from '@ribajs/core'; | ||
constructor(private doNotTranslateDefaultLanguage: boolean) { | ||
} | ||
/** | ||
@@ -210,4 +214,4 @@ * Get translation by properties, e.g. `de.form.newsletter_label` | ||
} | ||
// ony switch language if autodetectLanguage is true and the browser language is not the default language | ||
if (browserLangFound && browserLangcode !== this.currentLangcode) { | ||
// only switch language if the browser language is not the default language (if doNotTranslateDefaultLanguage is true) | ||
if (/*this.doNotTranslateDefaultLanguage TODO &&*/ browserLangFound && browserLangcode !== this.currentLangcode) { | ||
this.setLangcode(browserLangcode, true); | ||
@@ -214,0 +218,0 @@ } |
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
44271
1121