Localization for bots #92
skybird23333
started this conversation in
Feature Suggestions
Replies: 1 comment
-
Couldn't the api also send through the locale code as part of the user object? This would mean that Revolt doesn't have to do any extra work as the i18n is done on the bot side but as a bot they can choose what to translate. This would be easier to implement into the api as having the api store translations would have a lot of data needed to be stored. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
This concept adds the ability to localize interfaces and messages from bots. Bots could send messages containing a translation identifier and optional params to put into the string, which would be displayed in the user's language. The translation will fall back to English when the language is not available.
To use this feature, a bot owner would first submit translations through the API or by uploading them in settings. Then, in the message object there would be a property to specify whether localization is enabled or not, as well as an object of params.
This feature can make it easier for bot developers to work with the hassle of displaying different languages individually, especially useful for economy/moderation bots.
Beta Was this translation helpful? Give feedback.
All reactions