-
Couldn't load subscription status.
- Fork 393
[feat] implement dynamic imports for locale code splitting #6076
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
Changes from all commits
85ec556
b2168d1
1274a07
8611d94
07f1406
41b15a4
c63ed4e
8f802d7
2b56274
34364ca
a57792b
8d86d41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,10 @@ const config: KnipConfig = { | |
| ], | ||
| project: ['**/*.{js,ts,vue}', '*.{js,ts,mts}'] | ||
| }, | ||
| 'apps/desktop-ui': { | ||
| entry: ['src/main.ts', 'src/i18n.ts'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [quality] low Priority Issue: Adding i18n.ts as entry point may expose functions not intended for external use |
||
| project: ['src/**/*.{js,ts,vue}', '*.{js,ts,mts}'] | ||
| }, | ||
| 'packages/tailwind-utils': { | ||
| project: ['src/**/*.{js,ts}'] | ||
| }, | ||
|
|
||
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.
[quality] high Priority
Issue: Desktop-ui i18n.ts is missing the 'd' export for date/number formatting that is present in main i18n.ts
Context: This creates API inconsistency between the two i18n modules which could break functionality
Suggestion: Export 'd' along with 't' and 'te' to maintain API consistency: export const { t, te, d } = i18n.global