Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String(localized:) Is not supported #79

Open
pete-ltk opened this issue Feb 25, 2025 · 3 comments
Open

String(localized:) Is not supported #79

pete-ltk opened this issue Feb 25, 2025 · 3 comments
Assignees

Comments

@pete-ltk
Copy link

String(localized:) (and similar callsites) are a common localization paradigm.

Transifex does not support Strings using the localized initializer because it swizzles NSBundle functions. At minimum, this limitation should be identified.

@stelabouras
Copy link
Collaborator

Thank you for creating the issue Pete. We are currently looking into ways of supporting the family of those String initializers, if possible.

@stelabouras stelabouras self-assigned this Feb 28, 2025
@pete-ltk
Copy link
Author

I linked the LocalizedStringResource init, but the issue was actually first noticed with the StaticString version
https://developer.apple.com/documentation/swift/string/init(localized:defaultvalue:table:bundle:locale:comment:)

@pete-ltk
Copy link
Author

I would also recommend adding this limitation to https://github.com/transifex/transifex-swift?tab=readme-ov-file#limitations until resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants