mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-10 22:45:55 +05:45
- Adds localized string support to paywall components -This is primarily done in `TemplateComponentsView`'s static function `chooseLocalization`. - Validates that promised localized strings are actually available. -This is done as component view models are created (see `TextComponentViewModel`), by throwing if an expected key is not present: `self.text = try localizedStrings.string(key: component.textLid)` -This pattern should be followed for every property that represents a localized string id, which ensures a non-nil value for every value.