WIP: formatting implementation of translate in rust and C++

This commit is contained in:
Olivier Goffart 2023-04-18 15:47:14 +02:00 committed by Olivier Goffart
parent a3855f1bcb
commit cf746ddf8d
8 changed files with 80 additions and 4 deletions

View file

@ -1471,6 +1471,15 @@ public:
}
};
inline SharedString translate(const SharedString &original, const SharedString &context,
const SharedString &domain,
cbindgen_private::Slice<SharedString> arguments)
{
SharedString result = original;
cbindgen_private::slint_translate(&result, &context, &domain, arguments);
return result;
}
} // namespace private_api
#if !defined(DOXYGEN)