Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/react-native/React/Modules/RCTI18nUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ - (BOOL)isDevicePreferredLanguageRTL
return direction == NSLocaleLanguageDirectionRightToLeft;
}

// Check if the current application language is RTL
// Intersect Xcode "Localization" languages with the system languages and checks if the result is using RTL
// For RTL support, app must add an RTL lang to .pbxproj's knownRegions = ( ... )
// and user must have chosen an RTL language
- (BOOL)isApplicationPreferredLanguageRTL
{
NSWritingDirection direction = [NSParagraphStyle defaultWritingDirectionForLanguage:nil];
Expand Down
Loading