| 411 | } |
| 412 | |
| 413 | QString ChatMessageProperty::GetLocale(const char *id) |
| 414 | { |
| 415 | auto it = std::find_if(_supportedProperties.begin(), |
| 416 | _supportedProperties.end(), |
| 417 | [id](const PropertyInfo &pi) { |
| 418 | return std::string(pi._id) == id; |
| 419 | }); |
| 420 | if (it == _supportedProperties.end()) { |
| 421 | return ""; |
| 422 | } |
| 423 | return obs_module_text(it->_locale); |
| 424 | } |
| 425 | |
| 426 | std::variant<bool, StringVariable> |
| 427 | ChatMessageProperty::GetDefaultValue(const char *id) |
no test coverage detected