Commit Graph
3 Commits
Author SHA1 Message Date
NachoSoto 6e9840062f Paywalls: fix finding locales with different regions (#3633)
This was a regression introduced by #3605.

### Example:

Consider a paywall configuration with these locales: `en_US`, `de_DE`.
Running on a device with locale `en_IN` for example.

Before #3605, `PaywallData.localizedConfiguration` would have returned
the `en_US` localization. However, that change made it so that it could
no longer find a matching localization with a different region.

This fix improves the locale lookup so that if it doesn't find a
matching localization with both language AND region, it then tries to
look it up with only the language, before falling back to the default
localization.
2024-02-05 15:26:03 -08:00
NachoSoto d3866a28e4 visionOS: fix support for Xcode 15.1 beta 3 (#3409)
Apple changed `xrOS` to `visionOS` on the latest beta. Looks like this
was already supported in prior `Xcode 15.1` betas, so this doesn't break
compatibility with them.
2023-11-14 12:51:39 -08:00
NachoSoto 6d60af2c42 Xcode 15: handle Locale.currencyCode deprecation (#2680) 2023-06-22 06:23:32 -07:00