#22 refactor to fulfill chrome app's locale