Skip to content

Instantly share code, notes, and snippets.

@dklinzh
Created May 8, 2019 01:58
Show Gist options
  • Save dklinzh/3ff33f8ca52a8a5ca48aa2037bb01ffb to your computer and use it in GitHub Desktop.
Save dklinzh/3ff33f8ca52a8a5ca48aa2037bb01ffb to your computer and use it in GitHub Desktop.
Find non-localized Chinese strings in Xcode. (在Xcode中查找未国际化中文字符串)

Find non-localized String

Xcode Find navigator > Find > Regular Expression, enter a query condition below:

For Chinese

  • Swift
= "[^"]*[\u4E00-\u9FA5]+[^"\n]*?"
  • Objective-C
= @"[^"]*[\u4E00-\u9FA5]+[^"\n]*?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment