Swift Package Localization Sub-directories

SE-0278 introduced support for localized resources in Swift packages. One subsection mentions a restriction on sub-directories under an .lproj directory but fails to detail why this restriction exists: Sub-directory in Localization Directory. Can anyone provide more justification as to why this restriction exists beyond

To avoid overly-complex and ambiguous resource directory structures...

and whether this restriction could be lifted?

1 Like

I can't answer your question as I wasn't involved with the design of the proposal. Maybe you'll find an answer somewhere in the review thread or in the even earlier pitch thread.

But I would be interested in what you're trying to achieve and why you would prefer to have the current limitation lifted for achieving what you're striving for. That might also get people more interested in reconsidering the current limitations. I think it's the very nature of Swift Evolution that these things can be lifted if there's a good reason to do that. But you'd have to explain the good reason first, else there are enough other topics people will focus their energy on.