mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Native live preview: Forward the translation domain to fix translations
CC #9942
This commit is contained in:
parent
dbf9b2bb44
commit
ad4eec2924
4 changed files with 15 additions and 3 deletions
|
|
@ -134,12 +134,12 @@ public:
|
|||
LiveReloadingComponent(std::string_view file_name, std::string_view component_name,
|
||||
const slint::SharedVector<slint::SharedString> &include_paths,
|
||||
const slint::SharedVector<slint::SharedString> &libraries,
|
||||
std::string_view style)
|
||||
std::string_view style, std::string_view translation_domain)
|
||||
{
|
||||
assert_main_thread();
|
||||
inner = cbindgen_private::slint_live_preview_new(
|
||||
string_to_slice(file_name), string_to_slice(component_name), &include_paths,
|
||||
&libraries, string_to_slice(style));
|
||||
&libraries, string_to_slice(style), string_to_slice(translation_domain));
|
||||
}
|
||||
|
||||
LiveReloadingComponent(const LiveReloadingComponent &other) : inner(other.inner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue