Replace runningNatively flag with more reliable runningInTranslation.

Closes #106.