Files
houseplan-card/src/summary-panel-i18n.ts
T
2026-09-09 09:54:14 +03:00

285 lines
19 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** Lazy RU/EN/DE/FR copy owned by the #437 summary runtime. */
const dictionaries = {
"en": {
"summary.default_title": "Summary",
"summary.default_block": "General",
"summary.system.device_count": "Device count",
"summary.system.total_area": "Total room area",
"summary.system.datetime": "Date and time",
"summary.new_block": "New block",
"summary.value_name": "Value name",
"summary.delete_block_title": "Delete block?",
"summary.delete_block_body": "This block contains values. It will be removed from the draft.",
"summary.save_failed": "Could not save the summary panel.",
"summary.conflict": "The configuration changed in another window. Load the current version to start again.",
"summary.reload_current": "Load current configuration",
"summary.unavailable": "Source unavailable",
"summary.empty_block": "No values in this block",
"summary.empty_space": "No values for this space",
"summary.measure_block": "Block",
"summary.measure_label": "Status",
"summary.controls": "Summary panel controls",
"summary.settings": "Summary panel settings",
"summary.show": "Show summary panel",
"summary.hide": "Hide summary panel",
"summary.hidden_mobile": "The panel is enabled locally but disabled on mobile",
"summary.hidden_narrow_unknown": "The panel is enabled locally and is waiting for Home Assistant to report the screen mode",
"summary.hidden_small": "The panel is enabled locally but this card is too small",
"summary.show_local": "Show panel on this card",
"summary.backend_required": "Update the House Plan integration to edit shared panel contents. Local display settings are still available.",
"summary.local_only": "You can change settings for this card. Shared panel contents are managed by an administrator.",
"summary.general_settings": "General settings",
"summary.blocks": "Blocks",
"summary.blocks_hint": "Arrange blocks, choose where they appear and add values.",
"summary.block_count": "{count} of {limit}",
"summary.show_local_hint": "The same setting as the show button in the House Plan header.",
"summary.show_mobile_hint": "Allow the panel in Home Assistant’s narrow screen mode.",
"summary.hide_block": "Hide block",
"summary.show_block": "Show block",
"summary.delete_block": "Delete block",
"summary.scope": "Show block in",
"summary.system_source": "System value",
"summary.no_search_results": "No matching entities",
"summary.refine_search": "More entities match. Refine the search to see them.",
"summary.current_source": "Current unavailable source",
"summary.storage_unavailable": "These screen settings work for this session but cannot be saved in this browser.",
"summary.load_failed": "Could not open the panel settings.",
"summary.unsupported_schema": "This panel was created by a newer House Plan version and cannot be shown here.",
"summary.panel_title": "Panel title",
"summary.show_mobile": "Display on mobile devices",
"summary.block_title": "Block title",
"summary.up": "Move up",
"summary.down": "Move down",
"summary.drag": "Drag to reorder",
"summary.select_source": "Select a source",
"summary.scope_all": "All spaces",
"summary.scope_space": "Specific space",
"summary.system_group": "System values",
"summary.entities_group": "Home Assistant entities",
"summary.search_entities": "Search entities by name or entity ID",
"summary.limit_values": "A block can contain up to 20 values",
"summary.add_value": "Add value",
"summary.limit_blocks": "The panel can contain up to 10 blocks",
"summary.add_block": "Add block",
"summary.problem.required": "Fill in this field.",
"summary.problem.limit": "The allowed limit has been exceeded.",
"summary.problem.duplicate_id": "This internal identifier is duplicated.",
"summary.problem.invalid_source": "Select a valid source.",
"summary.problem.missing_entity": "This entity is no longer available. Select another source to replace it.",
"summary.problem.missing_space": "This space is no longer available. Select another scope to replace it."
},
"ru": {
"summary.default_title": "Сводная информация",
"summary.default_block": "Общее",
"summary.system.device_count": "Количество устройств",
"summary.system.total_area": "Общая площадь комнат",
"summary.system.datetime": "Дата и время",
"summary.new_block": "Новый блок",
"summary.value_name": "Название показателя",
"summary.delete_block_title": "Удалить блок?",
"summary.delete_block_body": "В блоке есть показатели. Он будет удалён из черновика.",
"summary.save_failed": "Не удалось сохранить сводную панель.",
"summary.conflict": "Конфигурация изменилась в другом окне. Загрузите актуальную версию, чтобы начать заново.",
"summary.reload_current": "Загрузить актуальную конфигурацию",
"summary.unavailable": "Источник недоступен",
"summary.empty_block": "В этом блоке нет показателей",
"summary.empty_space": "Нет показателей для этого пространства",
"summary.measure_block": "Блок",
"summary.measure_label": "Состояние",
"summary.controls": "Управление сводной панелью",
"summary.settings": "Настройки сводной панели",
"summary.show": "Показать сводную панель",
"summary.hide": "Скрыть сводную панель",
"summary.hidden_mobile": "Панель включена локально, но отключена на мобильных устройствах",
"summary.hidden_narrow_unknown": "Панель включена локально и ожидает от Home Assistant информацию о режиме экрана",
"summary.hidden_small": "Панель включена локально, но карточка слишком мала",
"summary.show_local": "Показывать панель в этой карточке",
"summary.backend_required": "Обновите интеграцию House Plan, чтобы менять общее содержимое панели. Локальные настройки доступны.",
"summary.local_only": "Вы можете менять настройки этой карточки. Общим содержимым панели управляет администратор.",
"summary.general_settings": "Основные настройки",
"summary.blocks": "Блоки",
"summary.blocks_hint": "Настройте порядок, область отображения и показатели.",
"summary.block_count": "{count} из {limit}",
"summary.show_local_hint": "То же состояние, что у кнопки показа в шапке House Plan.",
"summary.show_mobile_hint": "Разрешает показ в узком режиме Home Assistant.",
"summary.hide_block": "Скрыть блок",
"summary.show_block": "Показать блок",
"summary.delete_block": "Удалить блок",
"summary.scope": "Где показывать блок",
"summary.system_source": "Системный показатель",
"summary.no_search_results": "Подходящие сущности не найдены",
"summary.refine_search": "Найдено больше сущностей. Уточните поиск, чтобы увидеть остальные.",
"summary.current_source": "Текущий недоступный источник",
"summary.storage_unavailable": "Настройки экрана действуют в этой сессии, но браузер не может их сохранить.",
"summary.load_failed": "Не удалось открыть настройки панели.",
"summary.unsupported_schema": "Эта панель создана в более новой версии House Plan и не может быть здесь показана.",
"summary.panel_title": "Название панели",
"summary.show_mobile": "Отображать на мобильных устройствах",
"summary.block_title": "Название блока",
"summary.up": "Выше",
"summary.down": "Ниже",
"summary.drag": "Перетащить для изменения порядка",
"summary.select_source": "Выберите источник",
"summary.scope_all": "Все пространства",
"summary.scope_space": "Определённое пространство",
"summary.system_group": "Системные показатели",
"summary.entities_group": "Сущности Home Assistant",
"summary.search_entities": "Поиск сущностей по названию или entity ID",
"summary.limit_values": "В блоке может быть не больше 20 показателей",
"summary.add_value": "Добавить значение",
"summary.limit_blocks": "В панели может быть не больше 10 блоков",
"summary.add_block": "Добавить блок",
"summary.problem.required": "Заполните это поле.",
"summary.problem.limit": "Превышено допустимое ограничение.",
"summary.problem.duplicate_id": "Внутренний идентификатор повторяется.",
"summary.problem.invalid_source": "Выберите корректный источник.",
"summary.problem.missing_entity": "Эта сущность больше недоступна. Выберите другой источник, чтобы заменить её.",
"summary.problem.missing_space": "Это пространство больше недоступно. Выберите другую область, чтобы заменить его."
},
"de": {
"summary.default_title": "Übersicht",
"summary.default_block": "Allgemein",
"summary.system.device_count": "Anzahl der Geräte",
"summary.system.total_area": "Gesamte Raumfläche",
"summary.system.datetime": "Datum und Uhrzeit",
"summary.new_block": "Neuer Block",
"summary.value_name": "Bezeichnung",
"summary.delete_block_title": "Block löschen?",
"summary.delete_block_body": "Dieser Block enthält Werte und wird aus dem Entwurf entfernt.",
"summary.save_failed": "Die Übersicht konnte nicht gespeichert werden.",
"summary.conflict": "Die Konfiguration wurde in einem anderen Fenster geändert. Laden Sie die aktuelle Version, um neu zu beginnen.",
"summary.reload_current": "Aktuelle Konfiguration laden",
"summary.unavailable": "Quelle nicht verfügbar",
"summary.empty_block": "Keine Werte in diesem Block",
"summary.empty_space": "Keine Werte für diesen Bereich",
"summary.measure_block": "Block",
"summary.measure_label": "Status",
"summary.controls": "Steuerung der Übersicht",
"summary.settings": "Einstellungen der Übersicht",
"summary.show": "Übersicht anzeigen",
"summary.hide": "Übersicht ausblenden",
"summary.hidden_mobile": "Die Übersicht ist lokal aktiv, aber auf Mobilgeräten deaktiviert",
"summary.hidden_narrow_unknown": "Die Übersicht ist lokal aktiv und wartet auf den Bildschirmmodus von Home Assistant",
"summary.hidden_small": "Die Übersicht ist lokal aktiv, aber diese Karte ist zu klein",
"summary.show_local": "Übersicht in dieser Karte anzeigen",
"summary.backend_required": "Aktualisieren Sie die House-Plan-Integration, um gemeinsame Inhalte zu bearbeiten. Lokale Einstellungen bleiben verfügbar.",
"summary.local_only": "Sie können Einstellungen dieser Karte ändern. Gemeinsame Inhalte verwaltet ein Administrator.",
"summary.general_settings": "Grundeinstellungen",
"summary.blocks": "Blöcke",
"summary.blocks_hint": "Reihenfolge, Anzeigebereiche und Werte festlegen.",
"summary.block_count": "{count} von {limit}",
"summary.show_local_hint": "Dieselbe Einstellung wie die Anzeigetaste im House-Plan-Kopfbereich.",
"summary.show_mobile_hint": "Erlaubt die Anzeige im schmalen Bildschirmmodus von Home Assistant.",
"summary.hide_block": "Block ausblenden",
"summary.show_block": "Block anzeigen",
"summary.delete_block": "Block löschen",
"summary.scope": "Block anzeigen in",
"summary.system_source": "Systemwert",
"summary.no_search_results": "Keine passenden Entitäten",
"summary.refine_search": "Weitere Entitäten stimmen überein. Verfeinern Sie die Suche, um sie zu sehen.",
"summary.current_source": "Aktuelle nicht verfügbare Quelle",
"summary.storage_unavailable": "Diese Bildschirmeinstellungen gelten für diese Sitzung, können aber in diesem Browser nicht gespeichert werden.",
"summary.load_failed": "Die Panel-Einstellungen konnten nicht geöffnet werden.",
"summary.unsupported_schema": "Dieses Panel wurde mit einer neueren House-Plan-Version erstellt und kann hier nicht angezeigt werden.",
"summary.panel_title": "Titel der Übersicht",
"summary.show_mobile": "Auf Mobilgeräten anzeigen",
"summary.block_title": "Blocktitel",
"summary.up": "Nach oben",
"summary.down": "Nach unten",
"summary.drag": "Zum Sortieren ziehen",
"summary.select_source": "Quelle auswählen",
"summary.scope_all": "Alle Bereiche",
"summary.scope_space": "Bestimmter Bereich",
"summary.system_group": "Systemwerte",
"summary.entities_group": "Home-Assistant-Entitäten",
"summary.search_entities": "Entitäten nach Name oder Entity-ID suchen",
"summary.limit_values": "Ein Block kann bis zu 20 Werte enthalten",
"summary.add_value": "Wert hinzufügen",
"summary.limit_blocks": "Die Übersicht kann bis zu 10 Blöcke enthalten",
"summary.add_block": "Block hinzufügen",
"summary.problem.required": "Füllen Sie dieses Feld aus.",
"summary.problem.limit": "Das zulässige Limit wurde überschritten.",
"summary.problem.duplicate_id": "Diese interne Kennung wird mehrfach verwendet.",
"summary.problem.invalid_source": "Wählen Sie eine gültige Quelle.",
"summary.problem.missing_entity": "Diese Entität ist nicht mehr verfügbar. Wählen Sie zum Ersetzen eine andere Quelle.",
"summary.problem.missing_space": "Dieser Bereich ist nicht mehr verfügbar. Wählen Sie zum Ersetzen einen anderen Geltungsbereich."
},
"fr": {
"summary.default_title": "Résumé",
"summary.default_block": "Général",
"summary.system.device_count": "Nombre d’appareils",
"summary.system.total_area": "Surface totale des pièces",
"summary.system.datetime": "Date et heure",
"summary.new_block": "Nouveau bloc",
"summary.value_name": "Nom de la valeur",
"summary.delete_block_title": "Supprimer le bloc ?",
"summary.delete_block_body": "Ce bloc contient des valeurs et sera supprimé du brouillon.",
"summary.save_failed": "Impossible d’enregistrer le panneau de résumé.",
"summary.conflict": "La configuration a changé dans une autre fenêtre. Chargez la version actuelle pour recommencer.",
"summary.reload_current": "Charger la configuration actuelle",
"summary.unavailable": "Source indisponible",
"summary.empty_block": "Aucune valeur dans ce bloc",
"summary.empty_space": "Aucune valeur pour cet espace",
"summary.measure_block": "Bloc",
"summary.measure_label": "État",
"summary.controls": "Commandes du panneau de résumé",
"summary.settings": "Paramètres du panneau de résumé",
"summary.show": "Afficher le panneau de résumé",
"summary.hide": "Masquer le panneau de résumé",
"summary.hidden_mobile": "Le panneau est activé localement mais désactivé sur mobile",
"summary.hidden_narrow_unknown": "Le panneau est activé localement et attend le mode d’écran de Home Assistant",
"summary.hidden_small": "Le panneau est activé localement mais cette carte est trop petite",
"summary.show_local": "Afficher le panneau dans cette carte",
"summary.backend_required": "Mettez à jour l’intégration House Plan pour modifier le contenu partagé. Les réglages locaux restent disponibles.",
"summary.local_only": "Vous pouvez modifier les réglages de cette carte. Le contenu partagé est géré par un administrateur.",
"summary.general_settings": "Paramètres généraux",
"summary.blocks": "Blocs",
"summary.blocks_hint": "Définissez l’ordre, les espaces d’affichage et les valeurs.",
"summary.block_count": "{count} sur {limit}",
"summary.show_local_hint": "Le même réglage que le bouton d’affichage dans l’en-tête de House Plan.",
"summary.show_mobile_hint": "Autorise l’affichage dans le mode écran étroit de Home Assistant.",
"summary.hide_block": "Masquer le bloc",
"summary.show_block": "Afficher le bloc",
"summary.delete_block": "Supprimer le bloc",
"summary.scope": "Afficher le bloc dans",
"summary.system_source": "Valeur système",
"summary.no_search_results": "Aucune entité correspondante",
"summary.refine_search": "D’autres entités correspondent. Affinez la recherche pour les afficher.",
"summary.current_source": "Source actuelle indisponible",
"summary.storage_unavailable": "Ces réglages d’écran s’appliquent à cette session, mais ce navigateur ne peut pas les enregistrer.",
"summary.load_failed": "Impossible d’ouvrir les paramètres du panneau.",
"summary.unsupported_schema": "Ce panneau a été créé par une version plus récente de House Plan et ne peut pas être affiché ici.",
"summary.panel_title": "Titre du panneau",
"summary.show_mobile": "Afficher sur les appareils mobiles",
"summary.block_title": "Titre du bloc",
"summary.up": "Monter",
"summary.down": "Descendre",
"summary.drag": "Faire glisser pour réorganiser",
"summary.select_source": "Sélectionner une source",
"summary.scope_all": "Tous les espaces",
"summary.scope_space": "Espace spécifique",
"summary.system_group": "Valeurs système",
"summary.entities_group": "Entités Home Assistant",
"summary.search_entities": "Rechercher par nom ou identifiant d’entité",
"summary.limit_values": "Un bloc peut contenir jusqu’à 20 valeurs",
"summary.add_value": "Ajouter une valeur",
"summary.limit_blocks": "Le panneau peut contenir jusqu’à 10 blocs",
"summary.add_block": "Ajouter un bloc",
"summary.problem.required": "Remplissez ce champ.",
"summary.problem.limit": "La limite autorisée est dépassée.",
"summary.problem.duplicate_id": "Cet identifiant interne est dupliqué.",
"summary.problem.invalid_source": "Sélectionnez une source valide.",
"summary.problem.missing_entity": "Cette entité n’est plus disponible. Sélectionnez une autre source pour la remplacer.",
"summary.problem.missing_space": "Cet espace n’est plus disponible. Sélectionnez une autre portée pour le remplacer."
}
} as const;
export function summaryPanelText(language: string, key: string): string {
const code = language.toLowerCase().split('-')[0] as keyof typeof dictionaries;
const selected = dictionaries[code] || dictionaries.en;
return (selected as Record<string, string>)[key]
|| (dictionaries.en as Record<string, string>)[key] || key;
}
export const summaryPanelDictionaries: Readonly<Record<string, Readonly<Record<string, string>>>> = dictionaries;