Add option to manually set language

This commit is contained in:
Patrick Nicolas
2025-09-18 15:50:08 +02:00
parent f33dc57ec9
commit b411afb946
10 changed files with 479 additions and 352 deletions
+4
View File
@@ -218,6 +218,9 @@ configuration::configuration(xr::system & system)
if (auto val = root["first_run"]; val.is_bool())
first_run = val.get_bool();
if (auto val = root["locale"]; val.is_string())
locale = val.get_string().value();
}
catch (std::exception & e)
{
@@ -304,5 +307,6 @@ void configuration::save()
json << ",\"override_foveation_pitch\":" << override_foveation_pitch;
json << ",\"override_foveation_distance\":" << override_foveation_distance;
json << ",\"first_run\":" << std::boolalpha << first_run;
json << ",\"locale\":" << json_string(locale);
json << "}";
}