Skip to content

Conversation

@rodion981
Copy link
Contributor

Ukrainian localization for Power flow card pl;us
Focused on clear, natural, and consistent terminology.

Ukrainian localization for Power flow card pl;us
Focused on clear, natural, and consistent terminology.
foXaCe added a commit to foXaCe/power-flow-card-plus that referenced this pull request Oct 25, 2025
Integrated 10 open pull requests from the upstream repository:
**Priority 1 - Critical Fixes:**
- PR flixlix#882: Fix Spanish translation (Inicio → Casa)
- PR flixlix#879: Fix secondary template bug with >4 individual entities
- PR flixlix#878: Fix battery charging attribution (prioritize Solar over Grid)
- PR flixlix#803 + flixlix#806: Fix individual consumption calculation (only count visible entities) and grid color at zero state
- PR flixlix#804: Fix battery-grid flow animation speed
- PR flixlix#801: Better null/undefined handling in displayValue
**Priority 2 - Features & i18n:**
- PR flixlix#875: Add HACS badge to README
- PR flixlix#877: Add Ukrainian translation (ua/uk)
- PR flixlix#845: Add Hindi translation (hi/hi-IN)
All changes tested and verified with successful build.
foXaCe added a commit to foXaCe/power-flow-card-plus that referenced this pull request Oct 28, 2025
Integrated 10 open pull requests from the upstream repository:
**Priority 1 - Critical Fixes:**
- PR flixlix#882: Fix Spanish translation (Inicio → Casa)
- PR flixlix#879: Fix secondary template bug with >4 individual entities
- PR flixlix#878: Fix battery charging attribution (prioritize Solar over Grid)
- PR flixlix#803 + flixlix#806: Fix individual consumption calculation (only count visible entities) and grid color at zero state
- PR flixlix#804: Fix battery-grid flow animation speed
- PR flixlix#801: Better null/undefined handling in displayValue
**Priority 2 - Features & i18n:**
- PR flixlix#875: Add HACS badge to README
- PR flixlix#877: Add Ukrainian translation (ua/uk)
- PR flixlix#845: Add Hindi translation (hi/hi-IN)
All changes tested and verified with successful build.
@flixlix flixlix requested a review from Copilot December 1, 2025 11:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Ukrainian localization for the Power Flow card by creating a new language file with translations of all UI strings. The translations focus on clear, natural, and consistent Ukrainian terminology for energy management terms.

Key Changes:

  • Added complete Ukrainian translation file with 78 translation keys
  • Translations cover card labels, editor options, and various UI elements related to power flow visualization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +80
{
"card": {
"label": {
"car": "Автомобіль",
"motorbike": "Мотоцикл"
}
},
"editor": {
"entity_generator": "Генератор сутностей",
"combined": "Об’єднана сутність (одна сутність із позитивними та негативними значеннями)",
"separated": "Розділені сутності (окрема для споживання та окрема для виробництва)",
"custom_colors": "Власні кольори",
"secondary_info": "Додаткова інформація",
"power_outage": "Відключення живлення",
"grid": "Мережа",
"solar": "Сонячна енергія",
"battery": "Акумулятор",
"fossil_fuel_percentage": "Частка викопного палива",
"home": "Дім",
"individual": "Окремо",
"accept_negative": "Дозволити від’ємні значення",
"advanced": "Розширені параметри",
"decimals": "Кількість десяткових знаків",
"consumption": "Споживання",
"production": "Виробництво",
"color_icon": "Колір іконки",
"color_circle": "Колір кола",
"color_value": "Колір значення",
"color_state_of_charge_value": "Колір заряду",
"display_zero": "Показувати нульові значення",
"display_zero_tolerance": "Допуск для нульових значень",
"display_state": "Показувати стан",
"display_zero_state": "Показувати стан при нулі",
"invert_state": "Інвертувати стан",
"template": "Шаблон",
"unit_of_measurement": "Одиниця виміру",
"unit_white_space": "Пробіл між числом і одиницею",
"label_alert": "Мітка сповіщення",
"icon_alert": "Іконка сповіщення",
"state_alert": "Стан сповіщення",
"state_of_charge": "Рівень заряду",
"state_of_charge_unit_white_space": "Пробіл одиниці виміру заряду",
"state_of_charge_unit": "Одиниця виміру заряду",
"state_of_charge_decimals": "Десяткові знаки заряду",
"state_of_charge_icon": "Іконка заряду",
"show_state_of_charge": "Показувати рівень заряду",
"state_type": "Тип стану",
"subtract_individual": "Віднімати індивідуальні значення",
"override_state": "Перевизначити стан",
"calculate_flow_rate": "Розраховувати швидкість потоку",
"inverted_animation": "Інвертована анімація",
"show_direction": "Показувати напрямок",
"circle_animation": "Анімація кола",
"color": "Колір",
"dashboard_link": "Посилання на дашборд",
"dashboard_link_label": "Назва посилання на дашборд",
"w_decimals": "Десяткові знаки для ватів",
"kw_decimals": "Десяткові знаки для кіловатів",
"max_flow_rate": "Максимальна швидкість потоку",
"min_flow_rate": "Мінімальна швидкість потоку",
"max_expected_power": "Максимальна очікувана потужність",
"min_expected_power": "Мінімальна очікувана потужність",
"watt_threshold": "Поріг переходу ват → кіловат",
"display_zero_lines": "Показувати лінії з нульовим значенням",
"clickable_entities": "Клікабельні сутності",
"disable_dots": "Вимкнути точки",
"use_new_flow_rate_model": "Новий алгоритм швидкості потоку",
"use_metadata": "Використовувати метадані",
"mode": "Режим",
"show": "Показати",
"hide": "Приховати",
"custom": "Користувацький",
"grey_out": "Затемнити неактивні",
"transparency": "Прозорість",
"grey_color": "Колір затемнення",
"tap_action": "Дія при натисканні",
"navigation_path": "Шлях переходу",
"sort_individual_devices": "Сортувати окремі пристрої"
}
}
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file extension should be .json instead of .js. All other language files in this directory use the .json extension (cs.json, de.json, dk.json, en.json, es.json, fi.json, fr.json, it.json, nl.json, pl.json, pt-BR.json, pt-PT.json, ru.json, sk.json, sv.json). Additionally, the localize.ts file imports all language files as .json files.

Copilot uses AI. Check for mistakes.
@flixlix flixlix merged commit 375ab0b into flixlix:main Dec 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants