Skip to content

Commit a869f95

Browse files
committed
added category translation to fitbit, google directions/geocoding, openweathermap & strava. changed fitbit category from social to fitness
1 parent e0c0dd3 commit a869f95

File tree

15 files changed

+17
-7
lines changed

15 files changed

+17
-7
lines changed

fitbit/fitbit.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165

166166
<script type="text/javascript">
167167
RED.nodes.registerType('fitbit in',{
168-
category: 'social',
168+
category: RED._("node-red-node-fitbit/fitbit:fitbit.label.category"),
169169
color:"#C0DEED",
170170
defaults: {
171171
fitbit: {type:"fitbit-credentials",required:true},
@@ -205,7 +205,7 @@
205205

206206
<script type="text/javascript">
207207
RED.nodes.registerType('fitbit',{
208-
category: 'social',
208+
category: RED._("node-red-node-fitbit/fitbit:fitbit.label.category"),
209209
color:"#C0DEED",
210210
defaults: {
211211
fitbit: {type:"fitbit-credentials",required:true},

fitbit/locales/de/fitbit.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"fitbit": {
33
"label": {
44
"fitbit": "Fitbit",
5+
"category": "Fitness",
56
"type": "Typ",
67
"goals": "Ziele",
78
"sleep": "Schlaf",

fitbit/locales/en-US/fitbit.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"fitbit": {
33
"label": {
44
"fitbit": "Fitbit",
5+
"category": "fitness",
56
"type": "Type",
67
"goals": "goals",
78
"sleep": "sleep",

google/directions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
<script type="text/javascript">
9090
RED.nodes.registerType('google directions',{
91-
category: 'location',
91+
category: RED._("node-red-node-google/google directions:directions.label.category"),
9292
color: '#ff9999',
9393
defaults: {
9494
name: {value:""},

google/geocoding.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
<script type="text/javascript">
6464
RED.nodes.registerType('google geocoding',{
65-
category: 'location',
65+
category: RED._("node-red-node-google/google geocoding:geocoding.label.category"),
6666
color: '#ff9999',
6767
defaults: {
6868
name: {value:""},

google/locales/de/directions.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"directions": {
33
"label": {
44
"directions": "Google Directions",
5+
"category": "Standort",
56
"name": "Name",
67
"apikey": "Google API Key",
78
"origin": "Startpunkt",

google/locales/de/geocoding.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"geocoding": {
33
"label": {
44
"geocoding": "Google Geocoding",
5+
"category": "Standort",
56
"geocodeby-address": "Geocodierung anhand Adresse",
67
"geocodeby-coordinates": "Geocodierung anhand Koordinate",
78
"name": "Name",

google/locales/en-US/directions.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"directions": {
33
"label": {
44
"directions": "Google Directions",
5+
"category": "location",
56
"name": "Name",
67
"apikey": "Google API Key",
78
"origin": "Origin",

google/locales/en-US/geocoding.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"geocoding": {
33
"label": {
44
"geocoding": "Google Geocoding",
5+
"category": "location",
56
"geocodeby-address": "Geocode by Address",
67
"geocodeby-coordinates": "Geocode by Coordinates",
78
"name": "Name",

openweathermap/locales/de/weather.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"weather": {
33
"label": {
44
"weather": "openweathermap",
5+
"category": "Wetter",
56
"name": "Name",
67
"location": "Ort",
78
"option_current": "Aktuelles Wetter für",

openweathermap/locales/en-US/weather.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"weather": {
33
"label": {
44
"weather": "openweathermap",
5+
"category": "weather",
56
"name": "Name",
67
"location": "Location",
78
"option_current": "Current weather for",

openweathermap/weather.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
<script type="text/javascript">
101101
RED.nodes.registerType('openweathermap',{
102-
category: 'weather',
102+
category: RED._("node-red-node-openweathermap/openweathermap:weather.label.category"),
103103
color: '#FFCC66',
104104
defaults: {
105105
name: {value:""},
@@ -240,7 +240,7 @@
240240

241241
<script type="text/javascript">
242242
RED.nodes.registerType('openweathermap in',{
243-
category: 'weather',
243+
category: RED._("node-red-node-openweathermap/openweathermap:weather.label.category"),
244244
color: '#FFCC66',
245245
defaults: {
246246
name: {value:""},

strava/locales/de/strava.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"strava": {
33
"label": {
44
"strava": "Strava",
5+
"category": "Fitness",
56
"user": "Benutzer",
67
"request": "Abfrage",
78
"activity": "Letzte Aktivitäten",

strava/locales/en-US/strava.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"strava": {
33
"label": {
44
"strava": "Strava",
5+
"category": "fitness",
56
"user": "User",
67
"request": "Request",
78
"activity": "get the most recent activity",

strava/strava.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186

187187
<script type="text/javascript">
188188
RED.nodes.registerType('strava',{
189-
category: 'fitness',
189+
category: RED._("node-red-node-strava/strava:strava.label.category"),
190190
defaults: {
191191
strava: { type:"strava-credentials", required: true },
192192
request: {value:"get-most-recent-activity"},

0 commit comments

Comments
 (0)