Language format #3582
Unanswered
sevenc-nanashi
asked this question in
API Feature Requests & Ideas
Language format
#3582
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
If bot can have localized text, it'll be good.
Register texts
From developers portal, like this:

(I edited HTML and photoshoped)
How to show
Like timestamp format:
<l:(id)>
<l:(id):(text):(text 2)...>
Example
(When texts are registered like image above)
<l:help.title>
->MyBot help
<l:about.uptime:1:2:3>
->1d 2h 3m
Why is this needed
Many bot has language settings, but some users cannot find another language (ex: Default is English but user cannot read English so don't know how to change language)
But with this, it's automatic and easy.
Alternative
Add locale data for gateway/not oauth user object.
(P.S. I'm not native of English so maybe text is weird)
Beta Was this translation helpful? Give feedback.
All reactions