You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know it's not a best practice, but it's common to change language inside application on the fly.
It will be nice to have ability to set Bundle.current, to override it.
The text was updated successfully, but these errors were encountered:
Could you please share how you override language today when using LocalizedStringResource? The API has improved a bit since NSLocalizedString so you shouldn't need to do any bundle overrides anymore.
For example, in SwiftUI, you can just set the locale in the environment to override:
Ah good point, yes, overriding environment works fine for SwiftUI view.
And for everything else it's good that we have an option to set locale on resource.
Probably this issue can be closed, but I would love to see this as example in README, thanks!
I know it's not a best practice, but it's common to change language inside application on the fly.
It will be nice to have ability to set
Bundle.current
, to override it.The text was updated successfully, but these errors were encountered: