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

@mangoweb/contember-translation-provider

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mangoweb/contember-translation-provider - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

1

dist/index.d.ts

@@ -7,2 +7,3 @@ import * as React from 'react';

initialLanguage: string;
onCurrentLanguageChange?: (language: string) => void;
}

@@ -9,0 +10,0 @@ export declare const ContemberTranslationProvider: React.FunctionComponent<ContemberTranslationProviderProps>;

@@ -59,3 +59,8 @@ Object.defineProperty(exports, '__esModule', { value: true });

}, [currentLanguage]);
const setLanguage = (language) => setCurrentLanguage(language);
const setLanguage = (language) => {
if (props.onCurrentLanguageChange) {
props.onCurrentLanguageChange(language);
}
setCurrentLanguage(language);
};
const isLoadingInitialLanguage = isLoadingTranslations &&

@@ -62,0 +67,0 @@ typeof allTranslations[props.initialLanguage] === 'undefined';

2

package.json
{
"name": "@mangoweb/contember-translation-provider",
"version": "0.0.2",
"version": "0.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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