geeksforsocialchange / imok

A simple bot to support people doing risky activities
https://gfsc.studio/blog/2021/imok-is-launched/
MIT License
12 stars 1 forks source link

feature: Allow people to set their desired language via SMS #77

Open kimadactyl opened 3 years ago

kimadactyl commented 3 years ago

Overview

Language is set by an admin. This presumes that we know it, and that the translations are all of even quality. It also makes testing harder.

Scope

Add an additional command that allows listing and setting languages

Acceptance Criteria

Questions/Assumptions

Is this going to get really silly for SMS lengths if we add a dozen languages?

wheresalice commented 3 years ago

Do we want to send the list of languages in English? Or the member's current language? Or the language's language?

Should we accept the chosen language in multiple languages?

We need some example text and commands to work against here.

kimadactyl commented 3 years ago

Yeah OK this is a complicated ticket.

Maybe for v1 we just accept the country code?

So add this to the list (will need to do #87 first) "LANG: update your language"

Sending LANG then says

To set your language, send LANG followed by your country code.

For example: 'LANG ar'

Available languages are:

- Arabic (ar)
- English (en)
- French (fr)

after lang ar you get

I set your language to Arabic! (Local greeting)

A couple things:

let's talk it out a bit more before we get stuck in with others too