This code is working for the English language, but when the language is different all the logic will break, how can it be replaced.
if (statuscontent.Contains("detained")) // TODO: remove string based logic
{
streamWriter.WriteLine("released");
statuscontent = "released";
}
else if (statuscontent.Contains("released"))
{
streamWriter.WriteLine("detained");
statuscontent = "detained";
}
thanks for the help