Update autogenerated documentation on how $translate is used

The current usage depicted in the autogenerated documentation linked to on GitHub is wrong, so this example change is meant to reflect the change in 2.0