-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Exclude type-checking for i18n & Add workflow for full check #718
Exclude type-checking for i18n & Add workflow for full check #718
Conversation
β Deploy Preview for livecodes ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @hatemhosny , Could you please take a review on this when you have time? The workflow for type-checking seems to be working as expected now. It reports that there are some i18n source changes for Code to Image feature, and translation key in other languages are inconsistent with English. We might want to fix them on Lokalise. |
Thank you @zyf722 The type check is indeed a lot faster now. I suggest to use the opposite approach.
We can then remove this exclusion in the other tsconfig file used by the CI workflow. What do you think?
Edit: |
Sorry for being a bit late to respond. I was kind of busy this week π΅βπ«
Done. I did not think of directly exclude them in the base tsconfig, as I subconsciously thought that these files would be used by the IDE's Intellisense. But now I realize that only English, our base language, is needed for this purpose and it will be included anyway. So it makes sense to exclude other languages - thanks for pointing this out.
I haven't had a chance to thoroughly check this PR yet. Is the weekly workflow working as we expected? |
|
Thank you @zyf722
Yes. It is working well. Overall, the whole i18n workflow is great. Thank you. |
i18n ActionsSource PR has been merged into the default branch. Maintainers can comment |
What type of PR is this? (check all applicable)
Description
This PR solves the build performance bottleneck raised in #707, which was caused by type-checking the entire codebase (including i18n locale objects) during building.
A new
tsconfig.noI18n.json
file that extends the basetsconfig
is added to exclude thesrc/livecodes/i18n/locales
directory for building types. A new workflow to perform full type-checking (triggered by PRs and pushes) is also included.Related Tickets & Documents
Added tests?
Added to documentations?