Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A new public static method has been introduced in the `TXNative` class, allowing developers to programmatically trigger the translation mechanism of Transifex SDK in cases where this is not supported. For example, in SwiftUI, where the swizzling mechanism of Transifex SDK does currently work, developers can replace views like this: ``` Text("test string") ``` with this: ``` Text(TXNative.t("test string")) ``` The method uses the default locale that Transifex SDK has been configured with. Note: If you want to change the current locale used by the SwiftUI preview to test different locales, click on the 'Product' menu item and then visit 'Scheme' > 'Edit Scheme...' > 'Run' > 'Options' > 'App Language' and pick the language you want to test.
- Loading branch information