-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SceneryStack needs actual locale list for Locale type #1003
Comments
@zepumph we should discuss this at some point, and decide how to clean up docs, or whether this is a mistake. Type checking is passing. |
This makes me a bit worried. I remember that the "actual" solution was to use a calculated artifact directly from the babel list (ground truth), but we got rid of that because we didn't want to have the addition of a new babel locale without regeneration to break the type checker. Can you post a usage here? And note how you think this may influence maintenance if we just imported the babel json directly? Can't we import json in Typescript? |
What about a generated d.ts from localeData file for localeType that lives in babel? |
That works (it wouldn't auto-update, but it would be right next to the file we are updating, presumably that would be easier?) Although then we would have sims depending on TS code in babel, which is a bit unprecedented. Imagine... linting issues across versions. I'm actually not convinced that is better (has more potential issues in the future). |
Let's just have it be an output to |
Otherwise manually specifying translation string keys for anything not in the "small example" list results in a type error.
The text was updated successfully, but these errors were encountered: