Skip to content

Commit

Permalink
Add language input check to installer
Browse files Browse the repository at this point in the history
  • Loading branch information
timetheoretical committed May 22, 2020
1 parent ac32985 commit 78f029a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion JitsiMeetOutlook/Installer1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,18 @@ private string getStartWithVideoMuted()

private string getLanguage()
{
return Context.Parameters["language"];
string[] availableLanguages = ["en", "fr"];
string userLanguageInput = Context.Parameters["language"];

if (availableLanguages.Contains(userLanguageInput))
{
return userLanguageInput;
}
else
{
return "en";
}

}


Expand Down

0 comments on commit 78f029a

Please sign in to comment.