mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
C++ Interpreter: Add support for setting the translation domain
This maps straight to the Rust API.
This commit is contained in:
parent
9f0c3c94a9
commit
fa2cf8c28a
3 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue