You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An AI is not necessarily enclosed to English speakers usage, specially Ougi as a public Discord entity. This is why finding a method to localizate current and future content seamlessly plus link languages to users must be done.
preloaded JSON objects are our best bet rn
The text was updated successfully, but these errors were encountered:
This has been a work in progress for a while now. Progress made since then is:
Interactive content, such as responses is translated on the fly.
Bot commands are localizable, by default it uses English, if a preferred language is specified, it'll search for the proper strings in a custom JSON object, accessable as ougi.localization.js. If no translation is found, it'll translate on the fly. // Not all commands have been adapted to accept translations. WIP.
Guild owners can set their guild's preferred language, default is none.
Users can set their specific preferred language, which is used across DMs and guilds with no preferred language set.
Speak command will use the preferred guild language, defaults on English.
A week or so ago, I added a translations cache. I think it works pretty well.
Basically, any string requested to ougi.text() will attempt to load from localization.js, if it isn't found it'll check the cache, if it isn't cached yet, Ougi will translate it on the fly then save it into the cache for future requests. Now, localized commands execute a whole lot faster.
An AI is not necessarily enclosed to English speakers usage, specially Ougi as a public Discord entity. This is why finding a method to localizate current and future content seamlessly plus link languages to users must be done.
preloaded JSON objects are our best bet rn
The text was updated successfully, but these errors were encountered: