From f83ca12c4049180969e1a755f70e29deae5d8a42 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Mon, 12 Jun 2023 15:22:05 -0700 Subject: [PATCH] RCTLocalizedString: Extract FBTs to bundle for CocoaPods (#37678) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37678 ## Stack React Native on iOS adds strings to Voiceover interactions to supply more information to users . Internally, and out-of-the-box externally, these are today always announced in English instead of being localized. This stack adds a limited new internal API, `RCTLocalizedString(string, description)` to allow auto-translated strings which are consumed by both Meta and OSS. Reviewed By: cipolleschi Differential Revision: D46414630 fbshipit-source-id: 1137182dbbd89d959b3d143ce534229968bdb8f7 --- packages/react-native/React-Core.podspec | 2 +- .../en.lproj/Localizable.strings | 26 ------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 packages/react-native/React/AccessibilityResources/en.lproj/Localizable.strings diff --git a/packages/react-native/React-Core.podspec b/packages/react-native/React-Core.podspec index 720e115e0b7..fe840820e65 100644 --- a/packages/react-native/React-Core.podspec +++ b/packages/react-native/React-Core.podspec @@ -69,7 +69,7 @@ Pod::Spec.new do |s| s.author = "Meta Platforms, Inc. and its affiliates" s.platforms = { :ios => min_ios_version_supported } s.source = source - s.resource_bundle = { "AccessibilityResources" => ["React/AccessibilityResources/*.lproj"]} + s.resource_bundle = { "RCTI18nStrings" => ["React/I18n/strings/*.lproj"]} s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.header_dir = "React" s.framework = "JavaScriptCore" diff --git a/packages/react-native/React/AccessibilityResources/en.lproj/Localizable.strings b/packages/react-native/React/AccessibilityResources/en.lproj/Localizable.strings deleted file mode 100644 index ee35fc3e5fe..00000000000 --- a/packages/react-native/React/AccessibilityResources/en.lproj/Localizable.strings +++ /dev/null @@ -1,26 +0,0 @@ -/* - Localizable.strings - React -*/ -"alert"="alert"; -"checkbox"="checkbox"; -"combobox"="combo box"; -"menu"="menu"; -"menubar"="menu bar"; -"menuitem"="menu item"; -"progressbar"="progress bar"; -"radio"="radio button"; -"radiogroup"="radio group"; -"scrollbar"="scroll bar"; -"spinbutton"="spin button"; -"switch"="switch"; -"tab"="tab"; -"tablist"="tab list"; -"timer"="timer"; -"toolbar"="tool bar"; -"checked"="checked"; -"unchecked"="not checked"; -"busy"="busy"; -"expanded"="expanded"; -"collapsed"="collapsed"; -"mixed"="mixed";