How to localize strings for config-plugins

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): iOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hi, is there any documentation how to translate strings which are under the plugins section? Some config-plugins have their own keys for permission strings. I can’t find any information about this. Is it even possible? I am aware how to translate the infoPlist strings using a locale file but I couldn’t find any information for config-plugin strings.

Example:

  plugins: [
    [
      'react-native-vision-camera',
      {
        cameraPermissionText:
          '$(PRODUCT_NAME) needs access to your Camera to create videos.',
        microphonePermissionText:
          '$(PRODUCT_NAME) needs access to your Microphone while you record videos.'
      }
    ]
  ],

Hey @hirbod, let me bring this up internally and see if A) this is currently possible and B) how to do so.

Cheers,
Adam

2 Likes

Any news on this?

@adamjnav thank you so much for keeping me updated on this one here!

This is just a guess, but maybe you could create the InfoPlist.strings file and then use the eas-build-post-install npm hook to copy it into the right place at build time.

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