If you run the the code with strace, you will notice that the .stringsdict file gets opend and read by the system, but the output of the code is the still the unformatted string.
On Apple, the code works as expected, so this seems to be a Linux-only issue.
I can confirm this bug on the latest Swift version on unix systems. Running any code that tries to use a .stringsdict will result in a Segmentation Fault.
Attachment: Download
Environment
Ubuntu Bionics with Swift 4.2Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Foundation | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 7296fb981847b28e625d1dbaafe4fe89Issue Description:
As the title says, NSLocalizedString does not work with .stringsdict on Linux.
See this code for reproduction.
https://github.com/viltit/NSLocalizedString
If you run the the code with strace, you will notice that the .stringsdict file gets opend and read by the system, but the output of the code is the still the unformatted string.
On Apple, the code works as expected, so this seems to be a Linux-only issue.