Skip to content

Commit

Permalink
* (bluefox) Added search for i18n keys in the tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Aug 4, 2022
1 parent ff9270e commit d05d3f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ See here: https://github.com/ioBroker/ioBroker.vis-2-widgets-react-template
-->

## Changelog
### **WORK IN PROGRESS**
* (bluefox) Added search for i18n keys in the tooltips

### 0.3.0 (2022-08-02)
* (bluefox) Renamed to `vis-2-widgets-react-dev`

Expand Down
5 changes: 5 additions & 0 deletions searchI18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ function findKeys(src, name) {
if (!keys.includes(node.value.value)) {
keys.push(node.value.value);
}
} else
if (node.type === 'Property' && node.key.name === 'tooltip') {
if (!keys.includes(node.value.value)) {
keys.push(node.value.value);
}
}
});
next();
Expand Down

0 comments on commit d05d3f4

Please sign in to comment.