fix mac & ios localize issue