Multilanguage messages: show a message body for user's locale (if available)

Open
#396 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
42/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
typescript

Research direction

Start by reviewing the existing Conversations implementation and exercising the Spark client's nightly translation plugin with a multilanguage message. Define how the user's preferred language list is obtained and how the untagged body serves as fallback; done means the available body matching the user's locale or preferences is displayed.

Written by the indexing model from the issue text.

Description

enhancement
What would you like to see?

A message may have a few bodies with the same message but in different languages:

<message>
  <body lang='es'>hola</body>
  <body lang='ru'>привет</body>
  <body>hi</body>
</message>

We should show a message in the language that the user prefers. This can be a language of the interface or this may be a settings where a user can list all languages that he understands e.g. sk, cs, en.

To test it you may use the Spark client in nightly build has a translation plugin that translates a message and then sends a multilanguage message. It also shows message body for the user's locale. Same feature was recently added to the Conversations.

What problem does this solve?

No response

Proposed solution

No response

Additional context

No response

Dominant language
TypeScript
Stars
429
Forks
30
Avg merge
6h 12m
Merged PRs (30d)
126

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from processone/fluux-messenger

All issues in processone/fluux-messenger

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.