-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multiple language localizations to compose component #283
Comments
Hey @rowanseymour, @susanm74 is hitting on the oft discussed localized attachment question. I think I know where we landed on this, but I don't want to add confusion if I have it wrong. I'll let you chime in here first. |
@ericnewcomer @rowanseymour just wanted to resolve how we want to handle partially localized attachments (see above) and let me know what attachments translations we should expect to save in this scenario |
We want the behaviour to be consistent between sending a broadcast from the UI and sending a broadcast in a flow. Currently this means we resolve each part of message separately - i.e. resolve the text by checking contact language, default org language, flow base language, then resolve the attachments that way, then quick replies. So for example if we have a flow base language of {"eng": {"text": "hi"}, "spa": {"quick_replies": ["si", "no"], "ara": {"attachments": ["http://test.jpg"]}}} will be resolved for contacts with these languages as follows:
That resolving currently happens in goflow/mailroom * and I think that's where it should stay. So the UI saves translations in their "sparse" format, and mailroom resolves what we actually send to a given contact.
|
compose component needs to support multi-language localization (aka translations cont'd)
add this as a searchable dropdown directly above the chatbox in the compose component that should allow the user to toggle back and forth between languages
translations dropdown should be hidden for usage such as the contact chat (when the user is sending a one-time text or attachments to a single recipient), and should be displayed for usage such as for broadcasts (when the user is sending text or attachments to multiple recipients, and needs to send the content in potentially multiple languages)
dropdown should display a list of languages filtered based on the org's languages
if the user has text and attachments for arabic, but then the org removes arabic from it's list of languages, don’t display the arabic translations in the component, and upon save, remove from the arabic translation from the translations
extra credit - show which languages content has been translated into vs. not translated via icons on the left side of the dropdown language option
todo - how to handle incomplete or partially localized attachments:
potentially relevant broadcast discussions:
The text was updated successfully, but these errors were encountered: