Merge pull request #2119 from bentiss/fix-color-translation

Fix: Translate and add colors to IFTTT Rules dropdown."
This commit is contained in:
Lauri Ojansivu 2019-01-22 16:45:29 +02:00 committed by GitHub
commit 6e28dec712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,8 @@ BlazeComponent.extendComponent({
if (labels[i].name === '' || labels[i].name === undefined) {
labels[i].name = labels[i].color;
labels[i].translatedname = `${TAPi18n.__(`color-${ labels[i].color}`)}`;
} else {
labels[i].translatedname = labels[i].name;
}
}
return labels;