Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Support multiple languages (i18n) for the text message copy #1377

Closed
greggles opened this issue Dec 15, 2020 · 4 comments
Closed

Support multiple languages (i18n) for the text message copy #1377

greggles opened this issue Dec 15, 2020 · 4 comments
Labels
kind/enhancement New feature or feature request.

Comments

@greggles
Copy link
Contributor

TL;DR

It would be nice to be able to send text messages to people in their primary language. It looks like some work on this happened in #1107 but from the API docs I don't see how a consumer would use that.

Design

Proposal

  • The admin interface should allow for specifying the accepted languages and associated copy.
  • The API should have a parameter for choosing one of those languages (and error if an unconfigured language is requested)

Alternatives considered

I think an API consumer could get a code and then do the localization locally and then send the message, but I believe the long-expires URL token is not returned in the API response (maybe I missed that in my read of the API).

Resources
n/a

Additional information
n/a

@greggles greggles added the kind/enhancement New feature or feature request. label Dec 15, 2020
@sethvargo
Copy link
Member

The changes made as part of #1352 will enable this. The feature isn't language-specific, but you'll be able to define multiple templates. You could do different languages or different variations of messages on the same language.

/cc @whaught

@mikehelmick
Copy link
Contributor

@sethvargo beat me to that by seconds...

@sethvargo
Copy link
Member

Duplicate of #1320

@sethvargo sethvargo marked this as a duplicate of #1320 Dec 15, 2020
@greggles
Copy link
Contributor Author

As usual, thanks so much for the quick response!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New feature or feature request.
Projects
None yet
Development

No branches or pull requests

3 participants