@library.global_function
def is_watching_discussion_locale(user, locale):
 return NewPostInLocaleEvent.is_notifying(user, locale=locale)

@ library . global_function def is_watching_discussion_locale ( user , locale ) : return NewPostInLocaleEvent . is_notifying ( user , locale = locale )
return true if user is watching the discussion for locale and false .