2023-04-19 09:50:11 +00:00
|
|
|
{
|
2023-07-08 09:48:15 +00:00
|
|
|
"title": "Workday",
|
2023-04-19 09:50:11 +00:00
|
|
|
"config": {
|
|
|
|
"abort": {
|
2023-05-21 08:13:36 +00:00
|
|
|
"already_configured": "Workday has already been setup with chosen configuration"
|
2023-04-19 09:50:11 +00:00
|
|
|
},
|
|
|
|
"step": {
|
|
|
|
"user": {
|
|
|
|
"data": {
|
|
|
|
"name": "[%key:common::config_flow::data::name%]",
|
|
|
|
"country": "Country"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"options": {
|
2023-06-21 09:17:36 +00:00
|
|
|
"description": "Set additional options for {name} configured for country {country}",
|
2023-04-19 09:50:11 +00:00
|
|
|
"data": {
|
|
|
|
"excludes": "Excludes",
|
|
|
|
"days_offset": "Offset",
|
|
|
|
"workdays": "Workdays",
|
|
|
|
"add_holidays": "Add holidays",
|
|
|
|
"remove_holidays": "Remove Holidays",
|
2023-11-13 12:41:46 +00:00
|
|
|
"province": "Subdivision of country",
|
|
|
|
"language": "Language for named holidays"
|
2023-04-19 09:50:11 +00:00
|
|
|
},
|
|
|
|
"data_description": {
|
2023-12-11 13:06:29 +00:00
|
|
|
"excludes": "List of workdays to exclude, notice the keyword `holiday` and read the documentation on how to use it correctly",
|
|
|
|
"days_offset": "Days offset from current day",
|
|
|
|
"workdays": "List of working days",
|
2023-09-26 06:21:36 +00:00
|
|
|
"add_holidays": "Add custom holidays as YYYY-MM-DD or as range using `,` as separator",
|
|
|
|
"remove_holidays": "Remove holidays as YYYY-MM-DD, as range using `,` as separator or by using partial of name",
|
2023-12-11 13:06:29 +00:00
|
|
|
"province": "State, territory, province or region of country",
|
|
|
|
"language": "Language to use when configuring named holiday exclusions"
|
2023-04-19 09:50:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"error": {
|
|
|
|
"add_holiday_error": "Incorrect format on date (YYYY-MM-DD)",
|
2023-09-26 06:21:36 +00:00
|
|
|
"add_holiday_range_error": "Incorrect format on date range (YYYY-MM-DD,YYYY-MM-DD)",
|
|
|
|
"remove_holiday_error": "Incorrect format on date (YYYY-MM-DD) or holiday name not found",
|
|
|
|
"remove_holiday_range_error": "Incorrect format on date range (YYYY-MM-DD,YYYY-MM-DD)"
|
2023-04-19 09:50:11 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"step": {
|
|
|
|
"init": {
|
2023-06-21 09:17:36 +00:00
|
|
|
"description": "Change additional options for {name} configured for country {country}",
|
2023-04-19 09:50:11 +00:00
|
|
|
"data": {
|
|
|
|
"excludes": "[%key:component::workday::config::step::options::data::excludes%]",
|
|
|
|
"days_offset": "[%key:component::workday::config::step::options::data::days_offset%]",
|
|
|
|
"workdays": "[%key:component::workday::config::step::options::data::workdays%]",
|
|
|
|
"add_holidays": "[%key:component::workday::config::step::options::data::add_holidays%]",
|
|
|
|
"remove_holidays": "[%key:component::workday::config::step::options::data::remove_holidays%]",
|
2023-11-13 12:41:46 +00:00
|
|
|
"province": "[%key:component::workday::config::step::options::data::province%]",
|
|
|
|
"language": "[%key:component::workday::config::step::options::data::language%]"
|
2023-04-19 09:50:11 +00:00
|
|
|
},
|
|
|
|
"data_description": {
|
|
|
|
"excludes": "[%key:component::workday::config::step::options::data_description::excludes%]",
|
|
|
|
"days_offset": "[%key:component::workday::config::step::options::data_description::days_offset%]",
|
|
|
|
"workdays": "[%key:component::workday::config::step::options::data_description::workdays%]",
|
|
|
|
"add_holidays": "[%key:component::workday::config::step::options::data_description::add_holidays%]",
|
|
|
|
"remove_holidays": "[%key:component::workday::config::step::options::data_description::remove_holidays%]",
|
2023-11-13 12:41:46 +00:00
|
|
|
"province": "[%key:component::workday::config::step::options::data_description::province%]",
|
|
|
|
"language": "[%key:component::workday::config::step::options::data_description::language%]"
|
2023-04-19 09:50:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"error": {
|
2023-07-13 15:52:50 +00:00
|
|
|
"add_holiday_error": "[%key:component::workday::config::error::add_holiday_error%]",
|
2023-09-26 06:21:36 +00:00
|
|
|
"add_holiday_range_error": "[%key:component::workday::config::error::add_holiday_range_error%]",
|
2023-07-13 15:52:50 +00:00
|
|
|
"remove_holiday_error": "[%key:component::workday::config::error::remove_holiday_error%]",
|
2023-09-26 06:21:36 +00:00
|
|
|
"remove_holiday_range_error": "[%key:component::workday::config::error::remove_holiday_range_error%]",
|
2023-05-13 08:42:04 +00:00
|
|
|
"already_configured": "Service with this configuration already exist"
|
2023-04-19 09:50:11 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"selector": {
|
|
|
|
"province": {
|
|
|
|
"options": {
|
|
|
|
"none": "No subdivision"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"days": {
|
|
|
|
"options": {
|
2023-07-13 02:00:05 +00:00
|
|
|
"mon": "[%key:common::time::monday%]",
|
|
|
|
"tue": "[%key:common::time::tuesday%]",
|
|
|
|
"wed": "[%key:common::time::wednesday%]",
|
|
|
|
"thu": "[%key:common::time::thursday%]",
|
|
|
|
"fri": "[%key:common::time::friday%]",
|
|
|
|
"sat": "[%key:common::time::saturday%]",
|
|
|
|
"sun": "[%key:common::time::sunday%]",
|
2023-04-19 09:50:11 +00:00
|
|
|
"holiday": "Holidays"
|
|
|
|
}
|
|
|
|
}
|
2023-09-25 06:59:15 +00:00
|
|
|
},
|
|
|
|
"issues": {
|
|
|
|
"bad_country": {
|
|
|
|
"title": "Configured Country for {title} does not exist",
|
|
|
|
"fix_flow": {
|
|
|
|
"step": {
|
|
|
|
"country": {
|
|
|
|
"title": "Select country for {title}",
|
|
|
|
"description": "Select a country to use for your Workday sensor.",
|
|
|
|
"data": {
|
|
|
|
"country": "[%key:component::workday::config::step::user::data::country%]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"province": {
|
|
|
|
"title": "Select province for {title}",
|
|
|
|
"description": "Select a province in country {country} to use for your Workday sensor.",
|
|
|
|
"data": {
|
|
|
|
"province": "[%key:component::workday::config::step::options::data::province%]"
|
|
|
|
},
|
|
|
|
"data_description": {
|
|
|
|
"province": "State, Territory, Province, Region of Country"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"bad_province": {
|
|
|
|
"title": "Configured province in country {country} for {title} does not exist",
|
|
|
|
"fix_flow": {
|
|
|
|
"step": {
|
|
|
|
"province": {
|
|
|
|
"title": "[%key:component::workday::issues::bad_country::fix_flow::step::province::title%]",
|
|
|
|
"description": "[%key:component::workday::issues::bad_country::fix_flow::step::province::description%]",
|
|
|
|
"data": {
|
|
|
|
"province": "[%key:component::workday::config::step::options::data::province%]"
|
|
|
|
},
|
|
|
|
"data_description": {
|
|
|
|
"province": "[%key:component::workday::issues::bad_country::fix_flow::step::province::data_description::province%]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-12-19 11:33:05 +00:00
|
|
|
},
|
|
|
|
"bad_named_holiday": {
|
|
|
|
"title": "Configured named holiday {remove_holidays} for {title} does not exist",
|
|
|
|
"fix_flow": {
|
|
|
|
"step": {
|
2024-02-04 20:15:17 +00:00
|
|
|
"fix_remove_holiday": {
|
2023-12-19 11:33:05 +00:00
|
|
|
"title": "[%key:component::workday::issues::bad_named_holiday::title%]",
|
|
|
|
"description": "Remove named holiday `{remove_holidays}` as it can't be found in country {country}.",
|
|
|
|
"data": {
|
|
|
|
"remove_holidays": "[%key:component::workday::config::step::options::data::remove_holidays%]"
|
|
|
|
},
|
|
|
|
"data_description": {
|
|
|
|
"remove_holidays": "[%key:component::workday::config::step::options::data_description::remove_holidays%]"
|
2024-02-04 20:15:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"error": {
|
|
|
|
"remove_holiday_error": "[%key:component::workday::config::error::remove_holiday_error%]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"bad_date_holiday": {
|
|
|
|
"title": "Configured holiday date {remove_holidays} for {title} does not exist",
|
|
|
|
"fix_flow": {
|
|
|
|
"step": {
|
|
|
|
"fix_remove_holiday": {
|
|
|
|
"title": "[%key:component::workday::issues::bad_date_holiday::title%]",
|
|
|
|
"description": "Remove holiday date `{remove_holidays}` as it can't be found in country {country}.",
|
|
|
|
"data": {
|
|
|
|
"remove_holidays": "[%key:component::workday::config::step::options::data::remove_holidays%]"
|
|
|
|
},
|
|
|
|
"data_description": {
|
|
|
|
"remove_holidays": "[%key:component::workday::config::step::options::data_description::remove_holidays%]"
|
2023-12-19 11:33:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"error": {
|
|
|
|
"remove_holiday_error": "[%key:component::workday::config::error::remove_holiday_error%]"
|
|
|
|
}
|
|
|
|
}
|
2023-09-25 06:59:15 +00:00
|
|
|
}
|
2023-11-03 16:49:48 +00:00
|
|
|
},
|
|
|
|
"entity": {
|
|
|
|
"binary_sensor": {
|
|
|
|
"workday": {
|
|
|
|
"state_attributes": {
|
|
|
|
"workdays": {
|
|
|
|
"name": "[%key:component::workday::config::step::options::data::workdays%]"
|
|
|
|
},
|
|
|
|
"excludes": {
|
|
|
|
"name": "[%key:component::workday::config::step::options::data::excludes%]"
|
|
|
|
},
|
|
|
|
"days_offset": {
|
|
|
|
"name": "[%key:component::workday::config::step::options::data::days_offset%]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-11-06 09:17:48 +00:00
|
|
|
},
|
|
|
|
"services": {
|
|
|
|
"check_date": {
|
|
|
|
"name": "Check date",
|
|
|
|
"description": "Check if date is workday.",
|
|
|
|
"fields": {
|
|
|
|
"check_date": {
|
|
|
|
"name": "Date",
|
|
|
|
"description": "Date to check if workday."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-19 09:50:11 +00:00
|
|
|
}
|
|
|
|
}
|