class Tourmaline::LocaleFilter
- Tourmaline::LocaleFilter
- Tourmaline::Filter
- Reference
- Object
Overview
Filters messages not from users with a specific language_code. Keep in mind that not all Users have a language_code.
Options:
locale : String | Regex
- the language code/pattern to match on
Context additions:
language_code : String
- the matched language code
Example:
filter = LocaleFilter.new(/en|es/)