-
Notifications
You must be signed in to change notification settings - Fork 4
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
i18n: typescript integration #126
base: master
Are you sure you want to change the base?
Conversation
we use typescript now :)
text: string, | ||
plural?: string | { [key: string]: any }, | ||
options?: { [key: string]: any } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really weird construct as the second option can be omitted, but you could still provide the 3rd one instead. Hence you have some weird typing allowances here ... 🤔
Info: this is the main i18n interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we maybe reconsider the API to make it simpler?
We also had some confusion with it, while adding declarations to workflow-client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could potentially think of providing an alternative API entry point.
If we really want to modify this interface, then we might have to consider writing codemod for transforming previous calls in dependent project. (depending on the changes proposed)
First of all I actually wanted to ensure a bit of stability for this project as it hasn't been touch for a long time.
No description provided.