NSPersonNameComponents internationalization APIs
| Originator: | frozendevil | ||
| Number: | rdar://21539675 | Date Originated: | 24-Jun-2015 09:00 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Enhancement | Reproducible: | Not Applicable |
I’d like the ability to query NSPersonNameComponents for the typical set of expected name fields for a given locale (similar to how one can query `NSCalendar` for the first day of the week in a locale). Currently (as far as I know) best practice for internationalized name input is to provide a free-form text input area and let the user populate it as they see fit. This is great in general, but sometimes lead to the problems `NSPersonNameComponentsFormatter` aims to fix; things like inappropriately truncating in the middle of a name. Allowing 3rd party devs to make use of `NSPersonNameComponentsFormatter` without requiring them to encode locale-based assumptions about name input would be very beneficial—and, I believe, prevent a lot of internationalization errors. Ideally the information returned would be ordered to account for, e.g., various cultures’ standards on family name placement. Obviously name input is not a totally well-defined/specified problem, and freeform input should always be provided as a fallback, but this would serve as a useful heuristic to optimize the typical case.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!