Rework translation only logic

Ignore translation only import only for testing, not for publishing.

Change-Id: If9b3d68ebdc18d5c5d6f2bb63ec339c0da2396da