longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.71k stars 950 forks source link

增加自定义配置 #887

Closed 0xtronzheng closed 5 months ago

0xtronzheng commented 6 months ago

Issue Description

能否在配置里面增加 自定义按钮文本的配置

Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Info

ZLPhotoBrowser version: e.g. 4.4.8.2 Device: e.g. iPhone 14 Pro Device version: e.g. iOS 16.0 Xcode version: e.g. Xcode 14.0

Configuration code of ZLPhotoConfiguration

   Paste your code here.
0xtronzheng commented 6 months ago

选择完photo 之后,需要可以自定义done 按钮的 文字

longitachi commented 6 months ago

https://github.com/longitachi/ZLPhotoBrowser/wiki/How-to-use-(Swift)#customize-language

https://github.com/longitachi/ZLPhotoBrowser/blob/88956343a642296c52de896d02054758e2442a99/Sources/General/ZLLanguageDefine.swift#L161-L162

可以先修改done的文案,不过 done 这个相机拍照、文字贴纸输入界面也在用,后续会把这些key分开