mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 15:47:26 +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
|
@ -284,6 +284,12 @@ SCENARIO("Component Compiler")
|
|||
REQUIRE(compiler.style() == "fluent");
|
||||
}
|
||||
|
||||
SECTION("configure translation domain")
|
||||
{
|
||||
// Make sure this compiles.
|
||||
compiler.set_translation_domain("cpptests");
|
||||
}
|
||||
|
||||
SECTION("Compile failure from source")
|
||||
{
|
||||
auto result = compiler.build_from_source("Syntax Error!!", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue