I have two language versions(English, Chinese) in my app. I would like to change button language text into these languages when user click on "Change Language" button.
For example,
btnLogOut.setTitle(NSLocalizedString("Logout", comment: ""), for: .normal)
In Chinese language, the text does not show completely. So, I would like to change the font size when button text is translated into Chinese.
I don't want to change font size in English version. The Default font size for this button is "System Font. 15"
btnLogOut.setTitle(NSLocalizedString("Logout", comment: ""), for: .normal, UIFont.buttonFontSize) <br>
I got error. Actually , I added as a testing. I don't know how to do it. Please help me.