react-nativeexporeact-native-image-picker

expo-image-picker translate buttons on iOS


I need to change the text (translate to my language) when the user choose to take a photo from camera on iOS. I didn't find anything in docs. On android the buttons appear with the language configured on the device, but on iPhone the text of the buttons always appears in English. I would like to be able to change the language of these buttons

enter image description here


Solution

  • I had the same problem and found a solution on a Github issue.

    You can fix it by setting the CFBundleDevelopmentRegion to the language of your app in the app.json config:

    "expo":{
        ...
        "ios":{
            "infoPlist":{
                "CFBundleDevelopmentRegion":"de"
            }
        }
    }
    

    The property accepts any two-letter ISO 639-1 language code (like "en", "de" or "ja") or a three-letter ISO 639-2 code.