Size: a a a

2018 February 06

А

Алексей in Dev Chat
Let's say I have a handler named startHandler that when someone sends /start it replies with a greeting
источник

А

Алексей in Dev Chat
How do I change the language of the message sent?
источник

А

Алексей in Dev Chat
In localization I mean
источник

MM

Mikita Melnikau in Dev Chat
In API was an example how to use localisation. I saw it about week back
источник

MM

Mikita Melnikau in Dev Chat
In top menu of API
источник

А

Алексей in Dev Chat
Mikita Melnikau
In top menu of API
I saw an example under localization
источник

А

Алексей in Dev Chat
But it was really short
источник

MM

Mikita Melnikau in Dev Chat
Алексей
But it was really short
There was a full example with usage
источник

А

Алексей in Dev Chat
Mikita Melnikau
There was a full example with usage
The thing is I wanna translate the bot into Russian but I didn't know how to start
источник

А

Алексей in Dev Chat
Do you have an example?
источник

А

Алексей in Dev Chat
Алексей
Я не говорю по-русски
Sorry... Я могу ГОВОРЮ па русский*
источник

А

Алексей in Dev Chat
I don't know what happened I'm "usually" good with Russian
источник

E

Edouard in Dev Chat
😂
источник

MM

Mikita Melnikau in Dev Chat
Алексей
Do you have an example?
sorry, but I still got no such project where I could using multi lang... But I just open API in http://nabovyan.xyz/telegram-node-bot/Ivan.html and think there is all details that you need. You need to start your own storage. Its easy to do in JSON format. But unlike as normal storage locatisations strorage set method will return an error. If you look on get method, you can understand how it mechanic.  use TDD if you dont know how to start
источник

А

Алексей in Dev Chat
I created the JSOn file, but can't really know what to write instead of "startMessage"
источник

А

Алексей in Dev Chat
I named a handler "startHandler" in which the bot greets the user who sends a message
источник

А

Алексей in Dev Chat
If I made it like
{
    "startHandler": "Something"
}

How do I include it in the bot?
источник

А

Алексей in Dev Chat
Алексей
I don't know what happened I'm "usually" good with Russian
I'm feeling this is wrong 😅
источник

MM

Mikita Melnikau in Dev Chat
Thats why probramming is Pandoras box for most people. Look on base storage implementation and follow it with your localization storage organisation. No one can know logic in your head.
источник

MM

Mikita Melnikau in Dev Chat
Thats NodeJS community. We grows by each part of code, marked by users. Be first who release localisation for bot in public project on github.
источник