This is the C project I’ve been working on. It’s a #PHP extension. https://github.com/ramsey/ecma_intl
@ramsey any tl;dr please?
@dragnucs what do you want to know that the repository description doesn’t say?
(I do plan on improving the README before I make any releases.)
@ramsey I know that PHP is a programming language and ECMA is a spec for a different competting language. But how is EMCA Intl work inside of PHP?
@dragnucs I’m porting the same interfaces into PHP, and the functionality is all the same. So something like `new Intl.Locale('en')` in JavaScript will be `new Ecma\Intl\Locale('en')` in PHP.
I'm not sure why I didn't think about this earlier, but I decided to check out WebKit's implementation, and they're basically doing the same thing I'm trying to do, so that provides me with some good example code to look at. https://github.com/WebKit/WebKit/blob/main/Source/JavaScriptCore/runtime/IntlLocale.cpp