Michael Brevard
Michael Brevard
@kazupon sure thing! Basically, the current translation functions like `t` don't have type safety, because they accept a simple string or a number. This would allow autocomplete suggestions as well...
Of course! > You can add type test to `test-dts` directory. I mean, this would require unit testing of type **inference**, rather than regular types. It partially relies directly on...
Thank you! That means I'd probably be able to finish this PR's core functionality today, and then try the tests
@sagsagg I am planning to make it JSON compatible, yes. I'd have to see if json files get treated differently in terms of message parsing and adjust accordingly, but it...
@kazupon does this make sense? From the tests that are already present the functionality appears to stay the same, still getting all the right messages. Would appreciate a review from...
@kazupon Alright, I'll add a type test :+1: There doesn't seem to be a regression from my current testing, but perhaps it's worth investigating why Locale is seen as an...
@kazupon I've been looking into this a bit more, and I may have an idea that won't generate a type error, although I would like to discuss it with you...
> Is this pr still going on? Look forward to Yea, it is still in progress. Sorry, was quite busy lately with personal life. This will likely take a little...
@kazupon Was thinking about this a little more. Obviously reading the messages from the files with a typed solution won't be possible, considering types can't access runtime objects (unless we...