如何更改 Here Map 上的标签语言?

How to change the label languages on the Here Map?

如官网所述:HERE SDK does not require any actions from developers to set the appropriate language as it automatically detects the current device language setting and applies the same language within the SDK if it is supported. 当我更改 phone 上的语言设置时,我的应用程序中的地图语言没有改变。 我还尝试更改 onCreate 设置中的语言环境。我也没成功。

        Locale locale = new Locale("ru_RU");
        Locale.setDefault(locale);
        Configuration configuration = new Configuration();
        configuration.locale = locale;
        getBaseContext().getResources().updateConfiguration(configuration, getBaseContext().getResources().getDisplayMetrics());

我做错了什么?为什么语言没有改变?

这从版本 4.1.6 开始工作 需要在MapSceneConfig中指定语言,加载地图场景时添加

private void loadMapScene() {
MapSceneConfig mapSceneConfig = new MapSceneConfig();
mapSceneConfig.mainLanguageCode = LanguageCode.RU_RU;
mapSceneConfig.fallbackLanguageCode = LanguageCode.RU_RU;

mapView.getMapScene().loadScene(MapStyle.NORMAL_DAY, mapSceneConfig, new MapScene.LoadSceneCallback() {
    @Override
    public void onLoadScene(@Nullable MapScene.ErrorCode errorCode) {
        if (errorCode == null) {
            hereMap = new HereMap(MainActivity.this, mapView);
        } else {
            Log.d(TAG, "onLoadScene failed: " + errorCode.toString());
        }
    }
});

}