orejime
Advanced tools
Comparing version 2.0.3 to 2.1.0
# CHANGELOG | ||
## 2.1.0 | ||
- feature: translation of category names and descriptions (https://github.com/empreinte-digitale/orejime/pull/67) | ||
## 2.0.3 | ||
@@ -4,0 +8,0 @@ |
@@ -22,3 +22,4 @@ import React from 'react'; | ||
}, categories.map(function (_ref2) { | ||
var title = _ref2.title, | ||
var name = _ref2.name, | ||
title = _ref2.title, | ||
description = _ref2.description, | ||
@@ -30,5 +31,5 @@ appNames = _ref2.apps; | ||
className: ns('CategorizedAppList-title') | ||
}, title), React.createElement("p", { | ||
}, t(['categories', name, 'title']) || title), React.createElement("p", { | ||
className: ns('CategorizedAppList-description') | ||
}, description), React.createElement("div", { | ||
}, t(['categories', name, 'description']) || description), React.createElement("div", { | ||
className: ns('CategorizedAppList-apps') | ||
@@ -35,0 +36,0 @@ }, React.createElement(AppList, { |
@@ -32,3 +32,4 @@ "use strict"; | ||
}, categories.map(function (_ref2) { | ||
var title = _ref2.title, | ||
var name = _ref2.name, | ||
title = _ref2.title, | ||
description = _ref2.description, | ||
@@ -40,5 +41,5 @@ appNames = _ref2.apps; | ||
className: ns('CategorizedAppList-title') | ||
}, title), _react.default.createElement("p", { | ||
}, t(['categories', name, 'title']) || title), _react.default.createElement("p", { | ||
className: ns('CategorizedAppList-description') | ||
}, description), _react.default.createElement("div", { | ||
}, t(['categories', name, 'description']) || description), _react.default.createElement("div", { | ||
className: ns('CategorizedAppList-apps') | ||
@@ -45,0 +46,0 @@ }, _react.default.createElement(_appList.default, { |
{ | ||
"name": "orejime", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "An easy to use consent manager that focuses on accessibility. A fork of Klaro!.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -179,2 +179,7 @@ # Orejime 🍪 | ||
security: "Security" | ||
}, | ||
categories: { | ||
analytics: { | ||
description: "A long form description of the category." | ||
} | ||
} | ||
@@ -276,4 +281,4 @@ }, | ||
[ | ||
name: "analytics", | ||
title: "Analytics", | ||
description: "A long form description of the category.", | ||
// The list of apps belonging to the category, referenced by name. | ||
@@ -280,0 +285,0 @@ apps: [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
243971
3854
380