mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-18 20:38:39 +00:00
Internationalisation & Multi-watch support
Copied two methods from GarminThermoNest to translate languages and manage different sized icons for the various sizes of watch. Also copied ErrorView for smaller wrapped text for error messages.
This commit is contained in:
@ -28,7 +28,7 @@ class HomeAssistantViewMenuItem extends WatchUi.MenuItem {
|
||||
// definitions.get(...) are Strings here as they have been checked by HomeAssistantView first
|
||||
WatchUi.MenuItem.initialize(
|
||||
definition.get("name") as Lang.String,
|
||||
"Menu",
|
||||
WatchUi.loadResource($.Rez.Strings.MenuItemMenu) as Lang.String,
|
||||
definition.get("entity") as Lang.String,
|
||||
null
|
||||
);
|
||||
|
Reference in New Issue
Block a user