Native live preview: Forward the translation domain to fix translations
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions

CC #9942
This commit is contained in:
Olivier Goffart 2025-11-04 11:04:44 +01:00
parent dbf9b2bb44
commit ad4eec2924
4 changed files with 15 additions and 3 deletions

View file

@ -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)