update translation and add locale auto detection