New languages - Danish & Hungarian (#1376)

* New languages, Danish and Hungarian

* Yeelight Wizard - Ensure correct hostname
This commit is contained in:
LordGrey
2021-11-18 20:48:11 +00:00
committed by GitHub
parent ac941aebe1
commit d395e0a3b1
6 changed files with 143 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
var storedLang;
var availLang = ['cs', 'de', 'en', 'es', 'fr', 'it', 'nl', 'nb', 'pl', 'pt', 'ro', 'sv', 'vi', 'ru', 'tr', 'zh-CN'];
var availLangText = ['Čeština', 'Deutsch', 'English', 'Español', 'Français', 'Italiano', 'Nederlands', 'Norsk Bokmål', 'Polski', 'Português', 'Română', 'Svenska', 'Tiếng Việt', 'русский', 'Türkçe', '汉语'];
var availLang = ['cs', 'da', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'nb', 'pl', 'pt', 'ro', 'sv', 'vi', 'ru', 'tr', 'zh-CN'];
var availLangText = ['Čeština', 'Dansk', 'Deutsch', 'English', 'Español', 'Français', 'Magyar', 'Italiano', 'Nederlands', 'Norsk Bokmål', 'Polski', 'Português', 'Română', 'Svenska', 'Tiếng Việt', 'русский', 'Türkçe', '汉语'];
//$.i18n.debug = true;

View File

@@ -1483,7 +1483,15 @@ async function discover_yeelight_lights() {
if (device.hostname !== "") {
if (getHostInLights(device.hostname).length === 0) {
var light = {};
light.host = device.hostname;
//Create a valid hostname
if (device.domain)
{
light.host += '.' + device.domain;
}
light.port = device.port;
if (device.txt) {