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

message editor web component #16

Open
2 of 10 tasks
samuelstroschein opened this issue Jan 15, 2024 · 3 comments
Open
2 of 10 tasks

message editor web component #16

samuelstroschein opened this issue Jan 15, 2024 · 3 comments
Assignees

Comments

@samuelstroschein
Copy link
Member

samuelstroschein commented Jan 15, 2024

Must have

Maybe

Out of scope

  • WYSISYG interface
  • split screen variant view or something
@samuelstroschein
Copy link
Member Author

I converted this issue from a draft because of opral/monorepo#2025. Having this web component message/pattern editor before pluralization seems to be a hard requirement to avoid only some apps to support pluralization/matching, or every app to build their own solution (wasted time).

@NiklasBuchfink
Copy link
Member

@samuelstroschein Another requirement could be inline highlighting for rules. This could look similar to spelling correction in other editors with underlining, hovering to show warning, and resolving/autofixing if available.

  • better UX as we show specific warnings inline (e.g. "InLang" -> "inlang")
  • Parrot already supports this feature
  • needed to support fixable lint rules in the future

@samuelstroschein
Copy link
Member Author

Given #18, the structure of the rendered component in the DOM seems to go along the lines of:

<inlang-message>
  <-- patterns -->
  <inlang-message-pattern></inlang-message-pattern>
  <inlang-message-pattern></inlang-message-pattern>
  <inlang-message-pattern></inlang-message-pattern>
  <inlang-message-pattern></inlang-message-pattern>
  <inlang-message-pattern></inlang-message-pattern>
</inlang-message>

@NilsJacobsen NilsJacobsen transferred this issue from opral/monorepo Apr 8, 2024
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

No branches or pull requests

3 participants