fix(filters): handle the current locale correctly

The NumberFormat uses the locale which is set when the formatter is
initialized. This means a NumberFormat should be cached for each locale.