ImagePicker is not localized

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): iOS

I use the expo-image-picker module and use the Image.launchCameraAsync method to take picture.

When the iOS camera appears, the Cancel button is not localized to French, which the language of my iPhone. I get this behaviour in both the Expo client and in a Expo-managed iOS build.

In other apps using a similar camera, such as invoking the camera from a Web app, the Cancel button is localized.

I also use ImagePicker.launchImageLibraryAsync and again, the Picture Library Cancel button is not localized.

Is this normal? Am I missing a config somewhere? Should this be an issue?

Thanks

Hi. This code implies to me that it might be possible to supply a cancelButtonTitle option:

I saw it too in the code and tried to add the option like this:

ImagePicker.lauchCameraAsync({
   mediaTypes: ImagePicker.MediaTypeOptions.Images,
   allowsEditing: false,
   cancelButtonTitle: 'Annuler'
});

but it did not work. Cancel stills show as Cancel.

OK, it was worth a try. :man_shrugging:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.