opral / inlang-message-sdk

0 stars 0 forks source link

How do we deal with empty entries (messages and variants) #93

Open NilsJacobsen opened 2 weeks ago

NilsJacobsen commented 2 weeks ago

I'm not a super pro of the new slot system, but here is a short draft about what empty entries mean for different kind of situations.

@jldec @martin.lysk1
Short prep for tomorrow discussion.


-> https://www.loom.com/share/5b781f774c3545b99cbffbef244ecbbc
-> https://app.excalidraw.com/s/1RmnkzJA3Ph/74di1HkQUo2

martin-lysk commented 2 weeks ago

Thanks @nils.jacobsen will have a look!

One note in advanced: the slot system has nothing to do with empty entries for messages and variants ;-)

jldec commented 2 weeks ago

# topics

  1. When Messages for a locale are not present in the data they always trigger missing-translation lint rule. After editing and saving a translation, can you delete it entirely. Why is this not the same as detecting an empty string? Empty can mean fallback. It would be nice not to re-trigger the lint just for that Message (issue exists)
  2. When is a Message saved? Ideally there is no explicit save action.
  3. Regarding variants, declarations, and matchers: How do users avoid saving messaages with missing elements and other inconsistencies. This is an important topic for the editor component
NilsJacobsen commented 1 week ago

The outcome from the meeting on Tuesday: