marmelroy / Localize-Swift

Swift friendly localization and i18n with in-app language switching
MIT License
3.08k stars 330 forks source link

Fail to set current language if use Base instead of specified language #128

Open hasam0730 opened 5 years ago

hasam0730 commented 5 years ago

Hi Roy, I got an issue when I call setCurrentLanguage in my current project and a blank project.

It occurs when I use File.plist and Localizable.strings under Base localization.

Ex: I use "HR" for Croatian localization and "Base" for others. When I set current language to "EN", I think my current language should be "EN" but It is my default language instead (my default language is "HR", I don't know why my default language is "HR" because I tried remove my app then reinstall it. I only call setCurrentLanguage one time when I press a button). Do you have any ideas to resolve this issue?

Everything still be okay if I use them under specified language.

Ex: "EN" for English and "HR" for Croatian. Thank u very much