-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add Rich Text Support to SolidJS i18n #715
Comments
I like the simple concept |
Thanks for the feedback @thetarnav You're right about the implementation concerns. I think we could start simple with just basic runtime validation of the tags and mapping object. No need to overcomplicate things with type safety or codegen at this stage. The separate helper approach you suggested makes sense too. The main goal is just to enable basic rich text support in translations. |
I like the idea of a |
This is a must need. Not the best/easiest way to implement it, but some feature is better than no feature |
I found a good example which |
Describe The Problem To Be Solved
Currently, we can't add links or styled text inside i18n translations in SolidJS. We need a simple way to add components like or tags within our translated text, similar to how
next-intl
does it.Suggest A Solution
Add a simple t.rich() method that allows mapping custom tags to Solid components:
Example usage:
Key features:
This would give us an easy way to add links and formatting to our translations while keeping the code clean and maintainable.
The text was updated successfully, but these errors were encountered: