The reason collection.localizedTitle does not return any other language, because your application has only one localization of English . This is definitely an Apple Bug, but here's a hack to these steps.
- Create the linked
sv.lproj folder separately from the en.lproj folder that you already have. - Add an empty text file to the folder, and then add the file to your project.
- In step 2., you add Swedish language support to your project.
- Run your code, it should return Title in Swedish.
Update
If you want to add more languages after adding blank text, you can add, as shown in another answer, selecting “Project”, and in the “Localization” section add the language and select the empty file again, since we do not want to localize other files.
Hope this helps if in doubt.
Greetings.
source share