Updates to order screen

This commit is contained in:
2022-01-04 15:04:55 +10:00
parent 4de8f20d00
commit 85722fa692
21 changed files with 720 additions and 242 deletions

View File

@@ -23,11 +23,11 @@ let get var =
else
"Missing language variable: " + var
let getAndReplace languageVar replacements =
let getAndReplace languageVar (replacements: 'x list) =
let langString = get languageVar
replacements
|> List.mapi (fun index string
-> index + 1, string)
|> List.mapi (fun index replacement
-> index + 1, replacement.ToString())
|> List.fold (fun (result: string) (index, string)
-> result.Replace($"[{index}]", string)
) langString