NSString+Localization.m 341 B

123456789101112131415161718
  1. //
  2. // NSString+Localization.m
  3. // sampleSDK
  4. //
  5. // Created by 王昭威 on 2023/1/18.
  6. //
  7. #import "NSString+Localization.h"
  8. #import <UIKit/UIKit.h>
  9. #import "PCSTools.h"
  10. @implementation NSString (Localization)
  11. -(NSString *)localization{
  12. return NSLocalizedStringFromTableInBundle(self, @"Localizable", PCSTools.sdkBundle, @"");
  13. }
  14. @end