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
This commit is contained in:
Nick Gerleman
2023-06-12 15:22:05 -07:00
committed by Facebook GitHub Bot
parent 9b47148dd8
commit f83ca12c40
2 changed files with 1 additions and 27 deletions
+1 -1
View File
@@ -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"
@@ -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";