roataway / telegram-bot

A Telegram bot for reporting ETAs for public transport in Chișinău, Moldova
http://t.me/roataway_bot
GNU Affero General Public License v3.0
13 stars 3 forks source link

Add support for multiple languages #1

Open roata opened 5 years ago

roata commented 5 years ago

Some people requested a Russian UI.

iamandrewluca commented 5 years ago

If someone wants to contribute to translating to different langauges we can use
https://crowdin.com/ https://crowdin.com/page/open-source-project-setup-request

ralienpp commented 5 years ago

A privacy-preserving way to store the user preferences would be to hash the name+username string, and use that as a key in key-value store.

roata commented 5 years ago

Andrew suggested the use of the language_code attribute of a user profile: https://core.telegram.org/bots/api#user

This is the way to go.