2024-07-08
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Because different targets need to display different App names and different permission prompts, the internationalized InfoPlist file must be created with the nameInfoPlist.stringsHow to internationalize multiple targets? The steps are as follows:
1. First, we create different folders in the project root directory corresponding to multiple different targets, and then create the corresponding folders for each targetInfoPlist.stringsAs shown in the figure: the first InfoPlist.strings is placed in the Sanitation folder (name it at will), and the second InfoPlist.strings is placed in the Fulongma folder
Second, we check the right side of InfoPlist.strings to set the targetMembership corresponding to the file, so that each InfoPlist.string will find the corresponding target info.plist file, and we can internationalize the permissions and APP names that need to be translated in the corresponding InfoPlist.string file. As shown in the figure: