Created
April 4, 2023 20:57
-
-
Save basvdploeg/5b0404ac9d3c1b02f6484a4d42a263bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "string", | |
"title": { | |
"en": "Wind Direction", | |
"nl": "Windrichting" | |
}, | |
"getable": true, | |
"setable": false, | |
"icon": "/assets/wind-rose.svg" | |
} | |
const Sector = ['N','NNO','NO','ONO','O','OZO','ZO','ZZO','Z','ZZW','ZW','WZW','W','WNW','NW','NNW','N']; | |
let unitsText = this.homey.app.SpeedUnits === '0' ? "km/u" : "m/s"; | |
"measure_gust_strength.daily": { | |
"title": { | |
"en": "Max Gust Strength", | |
"nl": "Max windstoot kracht" | |
} | |
}, | |
{ | |
"type": "number", | |
"title": { | |
"en": "Hours Since Last Rained", | |
"nl": "Uren sinds laatste regen" | |
}, | |
"units": { | |
"en": "Hours", | |
"nl": "uur" | |
}, | |
"getable": true, | |
"setable": false, | |
"insights": true, | |
"icon": "/assets/rain_time.svg" | |
} | |
"measure_rain": { | |
"title": { | |
"en": "Rain Rate", | |
"nl": "Regenintensiteit" | |
}, | |
"units": { | |
"en": "mm/hr", | |
"nl": "mm/u" | |
} | |
}, | |
"measure_rain.event": { | |
"title": { | |
"en": "Rain Event", | |
"nl": "Regenbui" | |
} | |
}, | |
"measure_rain.hourly": { | |
"title": { | |
"en": "Rain Hourly", | |
"nl": "Regen afgelopen uur" | |
} | |
}, | |
"measure_rain.daily": { | |
"title": { | |
"en": "Rain daily", | |
"nl": "Regen vandaag" | |
} | |
}, | |
"measure_rain.weekly": { | |
"title": { | |
"en": "Rain weekly", | |
"nl": "Regen deze week" | |
} | |
}, | |
"measure_rain.monthly": { | |
"title": { | |
"en": "Rain monthly", | |
"nl": "Regen deze maand" | |
} | |
}, | |
"measure_rain.yearly": { | |
"title": { | |
"en": "Rain yearly", | |
"nl": "Regen dit jaar" | |
} | |
}, | |
"measure_rain.total": { | |
"title": { | |
"en": "Rain Total", | |
"nl": "Regen totaal" | |
} | |
} | |
Would you be up for translating these as well?
{
"settings": {
"settings": "Settings",
"port": "Port",
"connection": "Select the Port to match the setting you made in the WS View app",
"detected": "Detected",
"diagnosticsLog": "Diagnostics Log",
"subtitle": "Application Settings",
"saveChanges": "Save Changes",
"clearLog": "Clear Log",
"sendLog": "Send Log",
"detectedDescription": "",
"logEnabled": "Log Enabled",
"saved": "The settings have been saved",
"confirmSend": "Send the log contents to the developer?\n** All identifiers will be removed **",
"logSent": "The log has been sent.",
"logSendFailed": "Failed to send after 5 attempts.\nThe error messages are at the end of the log.",
"Units": "Units",
"SpeedUnits": "Wind Speed"
},
"good": "Good",
"Moderate": "Moderate",
"UnhealthyLo": "Slightly Unhealthy",
"Unhealthy": "Unhealthy",
"UnhealthyHi": "Very Unhealthy",
"Hazardous": "Hazardous",
}
@AdyRock Will this work for you?
{
"settings": {
"settings": "Instellingen",
"port": "Poort",
"connection": "Selecteer de poort die overeenkomt met de instelling die je hebt gemaakt in de WS View app",
"detected": "Gedetecteerd",
"diagnosticsLog": "Diagnostisch logboek",
"subtitle": "Toepassingsinstellingen",
"saveChanges": "Wijzigingen opslaan",
"clearLog": "Logboek wissen",
"sendLog": "Logboek verzenden",
"detectedDescription": "",
"logEnabled": "Logboek bijhouden ingeschakeld",
"saved": "De instellingen zijn opgeslagen",
"confirmSend": "De inhoud van het logboek naar de ontwikkelaar verzenden?\n** Alle identificatiegegevens worden verwijderd **",
"logSent": "Het logboek is verzonden.",
"logSendFailed": "Verzenden mislukt na 5 pogingen.\nDe foutmeldingen staan aan het einde van het logboek.",
"Units": "Eenheden",
"SpeedUnits": "Windsnelheid"
},
"good": "Goed",
"Moderate": "Gemiddeld",
"UnhealthyLo": "Licht ongezond",
"Unhealthy": "Ongezond",
"UnhealthyHi": "Zeer ongezond",
"Hazardous": "Gevaarlijk"
}
Thank you, much appreciated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's great, thank you. I will adjust the code for the in-line text.