How to parse a localized number string

I have csv files exported in the German locale. So the decimal separator is "," and the thousands separator is ".". I also might get these files in other locales.
I can only find a crate to format a number according to a locale (num_format). But could not find anything that parses strings into numbers