Skip to content

Treeshaking, large lists of dynamically accessed messages & submodules #2017

Discussion options

You must be logged in to vote

What is the expected way to manage large lists of messages that I need to access dynamically, without manually keeping a separate list of messages up to date?

Still forming the expectation. Things that come to my mind (in unsorted order):

  • the use case of really long lists seems rare. a better solution for common words would be to import country code translations from, for example, @inlang/language-tag instead of translating them over and over again.

  • @apttx submodule proposal that matches message id's will only work with aliases after #1892. Since we deviate from giving ids/keys a meaning (for good reasons!), splitting meaningless ids/keys via a regex will not work without aliases. I…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@apttx
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by apttx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants