Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS translation #96

Closed
apgsn opened this issue Jan 12, 2021 · 4 comments
Closed

iOS translation #96

apgsn opened this issue Jan 12, 2021 · 4 comments

Comments

@apgsn
Copy link

apgsn commented Jan 12, 2021

Hi,
I'd like to customize and translate this library interface to something else other than english on iOS. How should I go about it?
Thank you.

@liukefu2050
Copy link
Collaborator

banchichen/TZImagePickerController#443
banchichen/TZImagePickerController#929
Try whether the page can be solved, and update it later

@liukefu2050
Copy link
Collaborator

liukefu2050 commented Mar 12, 2021

@Pyroboomka
Copy link

Won't work because of banchichen/TZImagePickerController#1462
Seems it's locked to 4 languages only for now.

@Pyroboomka
Copy link

Well, some tinkering and it seems like you can patch-package the openImagePicker and openVideoPicker methods in IOS files.
Adding this line after creating vc helps
imagePickerVc.languageBundle = [NSBundle bundleWithPath:[[NSBundle tz_imagePickerBundle] pathForResource:@"ru" ofType:@"lproj"]];
Can substitute @ru with bundle you need from link above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants