add filter_locale function to dragonsuite

Signed-off-by: Mattias Andrée <maandree@operamail.com>