@coorpacademy/translate
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.3
@@ -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
45834
21