opral / inlang-message-ui-components

Issue tracker for UI components
0 stars 0 forks source link

message editor web component #16

Open samuelstroschein opened 8 months ago

samuelstroschein commented 8 months ago

Must have

Maybe

Out of scope

samuelstroschein commented 8 months ago

I converted this issue from a draft because of https://github.com/opral/monorepo/discussions/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 commented 8 months ago

@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.

samuelstroschein commented 7 months ago

Given opral/inlang-message-ui-components#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>