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
I thought it would be useful to have a Puter.js function that returns the user's UI language.
This could allow apps that support multi-language to automatically set their language to the same one the user set for Puter's UI.
This could be added in Puter.js as 2 things :
puter.language : works just like puter.env, simply returns the language code like en or fr
puter.ui.fetchLanguage() : could show more advanced info on the user's language, including code (ex : fr), name (ex : Français) and english name (ex : French).
The functions above are only examples and idk if they should be implemented like that or in another way.
The text was updated successfully, but these errors were encountered:
I thought it would be useful to have a Puter.js function that returns the user's UI language.
This could allow apps that support multi-language to automatically set their language to the same one the user set for Puter's UI.
This could be added in Puter.js as 2 things :
puter.language
: works just likeputer.env
, simply returns the language code likeen
orfr
puter.ui.fetchLanguage()
: could show more advanced info on the user's language, including code (ex :fr
), name (ex :Français
) and english name (ex :French
).The functions above are only examples and idk if they should be implemented like that or in another way.
The text was updated successfully, but these errors were encountered: