fix error localization if translator not use