localizely / flutter-intl-vscode

This VS Code extension generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
87 stars 1 forks source link

Add support for permission strings #58

Open martin-robert-fink opened 3 years ago

martin-robert-fink commented 3 years ago

It would be nice if this plug in could add support for localized permission strings like "may I use your location" and the many other required permission strings. Having a separate set of ARB files for permission strings that would be automatically added to iOS, Android, MacOS, etc would be awesome. If there is already a way to do this and I missed it, my apologies, but please do let me know :)

aleksakrstic commented 3 years ago

Hi @martin-robert-fink, thanks for the suggestion. How do you implement that user interaction for now? Do you use your own, custom dialog that ask user for such permissions, or you use some package?

martin-robert-fink commented 3 years ago

Right now, it's all manual. Honestly, I'm only familiar with the Apple localization process. Here's the link to the section on permission strings, and about a third of the way down, you'll see the section on localizing permission strings. You have to create a InfoPlist.strings a put it in each of the localized directories.

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html

aleksakrstic commented 3 years ago

@martin-robert-fink thanks for explanation. It sounds interesting, just it might get lower priority and might not come to consideration soon. Lets leave this issue open, and also available for upvotes...