trollix / ha-tsmoon-card

Home Assistant lovelace custom card Simple Moon phases
MIT License
6 stars 11 forks source link

Hu language not work #19

Open smezei opened 2 days ago

smezei commented 2 days ago

Language is not hungarian. Config part from /homeassistant/www/community/ha-tsmoon-card/tsmoon-card.js file:

... const printVersionToConsole = () => console.info(%c ${name.toUpperCase()} %c Version ${version}, 'color: white; font-weight: bold; background: crimson', 'color: #000; font-weight: bold; background: #ddd'); // This puts your card into the UI card picker dialog window.customCards = window.customCards || []; window.customCards.push({ type: custom:tsmoon-card title: Hold entity: sensor.moon icon_type: photo time_format: 24h language: hu }) ...

What is the problem?

trollix commented 14 hours ago

it's ok 4 me.

screenshot_1872

screenshot_1873

smezei commented 14 hours ago

I do not understand what is the problem on my HA.... I restartad the physical machine and the HA too.

kép

/homeassistant/www/community/ha-tsmoon-card/tsmoon-card.js .... var name = "ha-tsmoon-card"; var version = "v0.9.10";

const printVersionToConsole = () => console.info(`%c  ${name.toUpperCase()}  %c  Version ${version}  `, 'color: white; font-weight: bold; background: crimson', 'color: #000; font-weight: bold; background: #ddd');
// This puts your card into the UI card picker dialog
window.customCards = window.customCards || [];
window.customCards.push({
    type: custom:tsmoon-card
    title: Hold
    entity: sensor.moon
    icon_type: photo
    time_format: 24h
    language: hu
});
// Print Version to Console
printVersionToConsole();
// Registering card
customElements.define("tsmoon-card", TSMoonCard);
exports.printVersionToConsole = printVersionToConsole;
return exports;

})({});

smezei commented 13 hours ago

New info! Maybe not reload the new config in HA?

:8123/hacsfiles/ha-tsmoon-card/tsmoon-card.js?cachebuster=1732867085966 var name = "ha-tsmoon-card"; var version = "v0.9.10"; const printVersionToConsole = () => console.info(`%c ${name.toUpperCase()} %c Version ${version} `, 'color: white; font-weight: bold; background: crimson', 'color: #000; font-weight: bold; background: #ddd'); // This puts your card into the UI card picker dialog window.customCards = window.customCards || []; window.customCards.push({ type: 'tsmoon-card', name: 'Simple Moon Phase Card', entity: "sensor.moon", description: 'A card to view Moon Phases', preview: true, }); // Print Version to Console printVersionToConsole(); // Registering card customElements.define("tsmoon-card", TSMoonCard); exports.printVersionToConsole = printVersionToConsole; return exports; })({});