Socket
Socket
Sign inDemoInstall

@coorpacademy/translate

Package Overview
Dependencies
Maintainers
14
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coorpacademy/translate - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.3

.nyc_output/7eb1d7dd29aa5f721553debfadbb4469.json

4

es/translate.js

@@ -8,4 +8,4 @@ import get from 'lodash/fp/get';

var createTranslate = function createTranslate(locales) {
return function (token, data) {
var template = locales[token] || token;
return function (key, data) {
var template = locales[key] || key;

@@ -12,0 +12,0 @@ return template.replace(interpolation, function (token, value) {

@@ -22,4 +22,4 @@ 'use strict';

var createTranslate = function createTranslate(locales) {
return function (token, data) {
var template = locales[token] || token;
return function (key, data) {
var template = locales[key] || key;

@@ -26,0 +26,0 @@ return template.replace(interpolation, function (token, value) {

{
"name": "@coorpacademy/translate",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.3",
"description": "",

@@ -31,3 +31,3 @@ "main": "lib/translate.js",

"devDependencies": {
"@coorpacademy/eslint-plugin-coorpacademy": "^1.2.1",
"@coorpacademy/eslint-plugin-coorpacademy": "^2.0.0",
"ava": "^0.16.0",

@@ -34,0 +34,0 @@ "babel-cli": "^6.11.4",

@@ -7,4 +7,4 @@ import get from 'lodash/fp/get';

const createTranslate = locales => (token, data) => {
const template = locales[token] || token;
const createTranslate = locales => (key, data) => {
const template = locales[key] || key;

@@ -11,0 +11,0 @@ return template.replace(

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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