Language corresponding.
Hi Discord Team!
I see the problem of a big server for a community of games or social is having multiple language channels for annoucement stuff.
My idea is to use the Embed system that already existed. And store a corresponding key (Language) for it.
What to do:
+ There will be to the type of embed file to post
- Main embed file: will be posted to the annoucement channel.
- Sub-language embed file: will be written normally but in one specific language.
+Add a key node of language in embed Sub-language file, if no key node was made, should through error...
+In main embed file, simply read the language of the content they have been written in the Sub-language file and determine which should be shown to the user.
How to do:
E.g.:
+Sub-language embed file:
{
"language": English {or Vietnamese, Korean, German...}
+Main embed file:
{
+ So in the Main embed file could have multiple Sub-language embed files, but only one can be "standardLanguage", and the other will be read from the user's app.
That's it for my idea, it might sound dummy...
Thank you for reading!
Kind, Regard.
Please sign in to leave a comment.
Comments
0 comments