C++ Interpreter: Add support for setting the translation domain

This maps straight to the Rust API.
This commit is contained in:
Simon Hausmann 2024-02-22 16:21:55 +01:00 committed by Simon Hausmann
parent 9f0c3c94a9
commit fa2cf8c28a
3 changed files with 23 additions and 0 deletions

View file

@ -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!!", "");