universalviewer
universalviewer copied to clipboard
Global Translations Types
Progress
- Added a build step (hooked into build) that creates types for current English translation file.
- Incorporated that.
TODO
- [ ] Remove component Content types and content types from Config types.
To Discuss
- [ ] Do we remove all component translation configs? Pros: can save something like
$moreInformationtotitle. Cons: makes adding new translations complex, duplicate translation strings, excessive types and subtypes.
Resolves #1383.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| universalviewer | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 19, 2025 4:07pm |
I think it makes sense to commit the type file, so that the types can be imported elsewhere in the codebase. It may also be worth moving it to a generated/ directory so that its clear that they shouldn't be edited - and a place for us to add more.