C++ Interpreter: Add support for setting the translation domain

This maps straight to the Rust API.
This commit is contained in:
Simon Hausmann 2024-02-22 16:21:55 +01:00 committed by Simon Hausmann
parent 9f0c3c94a9
commit fa2cf8c28a
3 changed files with 23 additions and 0 deletions

View file

@ -980,6 +980,13 @@ public:
return s;
}
/// Sets the domain used for translations.
void set_translation_domain(std::string_view domain)
{
cbindgen_private::slint_interpreter_component_compiler_set_translation_domain(
&inner, slint::private_api::string_to_slice(domain));
}
/// Returns the include paths the component compiler is currently configured with.
slint::SharedVector<slint::SharedString> include_paths() const
{