My app only needs to support one language, and the default language is not English. What should I do?

  • Add the following configuration in the build.gradle file of your app module to ensure that other languages are ignored when packaging the APK.

 

 

android {  
       defaultConfig {  
         ...  
         resConfigs("in-rID") // For example, only Indonesian is supported  
       }  
   }

  

  • Since the default language of the SDK is English, meaning the values directory contains English resources, you need to copy the language resources from the values-in-rID folder to the values directory to replace the English resources.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.