tencent cloud

Tencent Cloud Super App as a Service

Setting the Current Language

Download
Focus Mode
Font Size
Last updated: 2025-07-04 17:33:29
Set the language using the MiniAppProxy API:
// Implement the MiniAppProxy API
public class YourMiniAppProxyImpl extends BaseMiniAppProxyImpl {
@Override
public Locale getLocale() {
// Return the language you want to set
return Locale.SIMPLIFIED_CHINESE; // Simplified Chinese
// or return Locale.US; // English
// or return new Locale("ar", "SA"); // Arabic
// or return new Locale("in", "ID"); // Indonesian
// or return Locale.FRANCE; // French
}
}



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback