The old saying goes, we need to support multi-statement... As a result, it's time to get started ..
At first, I wanted to search for and replace a file... But the file size is too large. If you don't change the file size, you won't be able to stand it anymore.
After reading the main. m Files and JSON files, I used Chinese characters to extract the two files into one file. While searching, the root cause is to wrap the text in a macro.
Nslocalizedstring (<# key #>,< # comment #>)
The extracted token https://github.com/li6185377/Chinese-replace-and-extract should be used according to your actual situation.
Later, we found that XIB also had a lot of dead Chinese characters .. No response...
In this case, we have made another XIB automatic token and the token value.
Https://github.com/li6185377/xib-link-zhongwen
In a similar way, modify the token according to your actual situation.
Hahahahahahahahahao is so cool that XIB is used to extract Chinese characters and replace Chinese with others.
Modify the format [SB appendformat: @ "\" % @ \ "] in the lower limit. The entire file can be translated.
You can use the annotation method to merge the results.
Extract Chinese blank space from agent and XIB and set text