Closed t3b123 closed 2 years ago
This localization is processed
Yes, however, I added the .localized into this function. It was missing from your code
I don't quite understand what you mean, what is your problem?
your code only had this ProgressHUD.showLoading(addedTo: view, text: "正在处理...", animated: true)
instead of this ProgressHUD.showLoading(addedTo: view, text: "正在处理...".localized, animated: true)
🤦I just discovered it, I'll fix it soon
I will release v1.4.5
later
You forgot to localize this string "正在处理..."
` import UIKit
extension PhotoEditorViewController { func exportResources() { if imageView.canReset() || imageView.imageResizerView.hasCropping || imageView.canUndoDraw || imageView.canUndoMosaic || imageView.hasFilter || imageView.hasSticker { imageView.deselectedSticker() ProgressHUD.showLoading(addedTo: view, text: "正在处理...".localized, animated: true) imageView.cropping { [weak self] in guard let self = self else { return } if let result = $0 { ProgressHUD.hide(forView: self.view, animated: false) self.isFinishedBack = true self.transitionalImage = result.editedImage self.delegate?.photoEditorViewController(self, didFinish: result) self.finishHandler?(self, result) self.didBackClick() }else { ProgressHUD.hide(forView: self.view, animated: true) ProgressHUD.showWarning( addedTo: self.view, text: "处理失败".localized, animated: true, delayHide: 1.5 ) } } }else { transitionalImage = image delegate?.photoEditorViewController(didFinishWithUnedited: self) finishHandler?(self, nil) didBackClick() } } }
`