1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #import <ABI48_0_0React/ABI48_0_0RCTDefines.h>
9 #import <UIKit/UIKit.h>
10 
11 @protocol ABI48_0_0RCTLocalizationProtocol <NSObject>
12 
13 /*
14  Call for other apps to use their own translation functions
15  */
16 - (NSString *)localizedString:(NSString *)oldString withDescription:(NSString *)description;
17 
18 @end
19 
20 /*
21  * It allows to set delegate for ABI48_0_0RCTLocalizationProvider so that we could ask APPs to do translations.
22  * It's an experimental feature.
23  */
24 ABI48_0_0RCT_EXTERN void setLocalizationDelegate(id<ABI48_0_0RCTLocalizationProtocol> delegate);
25 
26 /*
27  * It allows apps to provide their translated language pack in case the cannot do translation ABI48_0_0Reactively.
28  * It's an experimental feature.
29  */
30 ABI48_0_0RCT_EXTERN void setLocalizationLanguagePack(NSDictionary<NSString *, NSString *> *pack);
31 
32 @interface ABI48_0_0RCTLocalizationProvider : NSObject
33 
34 + (NSString *)ABI48_0_0RCTLocalizedString:(NSString *)oldString withDescription:(NSString *)description;
35 
36 @end
37