Skip to content

Make fe more i18n-friendly

Currently a lot of places in FE has put only segments for translation, ignoring the sentence or phrase structure. This is not particularly not friendly to languages with a word order other than SVO.

For example ([xxx] = i18n text)

Current                              Desired
[Reply to] {account}                 [Reply to {account}]
[Mentions] {accounts}                [Mentions {accounts}]
[Replies:] {ids}                     [Replies: {ids}]
{thread-muted}[, has words:] {words} [Thread muted, has words: {words}]
{account} [(You)]                    [{account} (You)]                   // self-mention tag in status

Using the <i18n> component instead of the $t() function will be desirable here (as some examples here represent links)