I tell after 12w first trimester. Company need to know early so that they can make arrangement for maternity leave. Also 12w considered bb is stable and less chances of miscarriage.
I tell my superior in the early trimester . Because I got severe morning sickness that prevent me from going outstation. For colleagues, it will be around 2nd trimester.