Closed yanshanshu closed 1 year ago
@yanshanshu 请看下面的示例,该示例演示了如何使用本地化插件将地图客户端本地化到使用 Style#localizeLabels(locale: Locale) 的特定语言环境。
@yanshanshu请看下面的示例,该示例演示了如何使用本地化插件将地图客户端本地化到使用 Style#localizeLabels(locale: Locale) 的特定语言环境。
谢谢。已经通过创建kt文件,通过kotlin语言实现地图的汉化。原本想做的是通过Java语言,但是没有找到设置的方法。
Environment
Observed behavior and steps to reproduce
使用Java代码,无法进行中文的设置,且import发现,10.9.1的包com.mapbox.maps.extension.localization.localizeLabels是报错的,说明没有这个包。 请问需要如何做才能通过Java代码设置地图的显示语言为中文?
Expected behavior
Notes / preliminary analysis
Additional links and references