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

@ribajs/i18n

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/i18n - npm Package Compare versions

Comparing version 0.17.0 to 0.17.2

2

package.json
{
"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 @@ }

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