Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Babel in Khan Academy's Internationalization Toolchain (khanacademy.org)
18 points by kevinb7 on June 22, 2015 | hide | past | favorite | 3 comments


I'm not sure if it was intentional, but I appreciate the irony of a post on internationalisation that hard-codes "first" and "last" names. Not that I have any better ideas!

(Note for any iOS devs, iOS 9 introduces a cool NSPersonNameComponentsFormatter that tries to help with this sort of thing.)


The example was adapted from internal documentation as an example of how templating works with our i18n component. There's still lots I have to learn about i18n. "familyName" and "givenName" would be more general, but there might still be some edges cases that doesn't cover.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: