4

I want to localize the privacy strings from the Runner's info.plist file, but fail to find how. In the official documentation (https://flutter.dev/docs/development/accessibility-and-localization/internationalization) at the very end is stated to add a key named "*eLocalizations**", but I don't see that if I try to add some new key to the plist (having the top item selected like written in the docs).

Any idea what I'm doing wrong? Please see attached what I see in Xcode when I add a new key.

enter image description here

picciano
  • 22,341
  • 9
  • 69
  • 82
Martin Schultz
  • 2,571
  • 2
  • 26
  • 31

1 Answers1

6

One way is to create an InfoPlist.strings file and localize that. The Info.plist will pull the appropriate translation from these files.

enter image description here

picciano
  • 22,341
  • 9
  • 69
  • 82
  • 10
    I have created the InfoPlist.strings file. But how do I add a language to it? – Simple UX Apps Mar 22 '20 at 08:50
  • @SimpleUXApps You click on "Runner" in the very top left which takes you to the project settings. Then you click on the little "+" under the "Localizations" section. That gives you a dropdown with all the languages you can add. – Tokke Dec 22 '20 at 12:12