Skip to content
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

use javascript assets for client i18n #16223

Merged
merged 11 commits into from
Oct 18, 2024

Conversation

schlawg
Copy link
Collaborator

@schlawg schlawg commented Oct 14, 2024

The build will generate, watch, etc all needed sources in normal operation.

ui/build --clean will deep clean, removing all translation/js/* and the @types/lichess/i18n.d.ts file. Deep clean shouldn't be necessary.

This removes a lot more code than it adds despite git's notion of additions & deletions.

@schlawg
Copy link
Collaborator Author

schlawg commented Oct 15, 2024

i figured out why the green "additions" count is so high.

remove i18n.d.ts from this PR (which is generated and has 5000+ lines), then this happens:

1251 fewer lines in scala sources compared to master
161 fewer lines in typescript vs master

@ornicar ornicar merged commit c533117 into lichess-org:master Oct 18, 2024
6 checks passed
ornicar added a commit that referenced this pull request Oct 18, 2024
@schlawg schlawg deleted the i18n-assets-squashed branch October 27, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants