Skip to content

Commit

Permalink
fix locale (#2938)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongdao123 authored Jun 30, 2023
1 parent d6a6fd8 commit eef0506
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
fun applyLocalizeLabels() {
val localeStr = mLocaleString
if (localeStr != null) {
val locale = if (localeStr == "current") Locale.getDefault() else Locale(localeStr)
val locale = if (localeStr == "current") Locale.getDefault() else Locale.Builder()
.setLanguageTag(localeStr).build()
savedStyle?.localizeLabels(locale, mLocaleLayerIds)
}
}
Expand Down

0 comments on commit eef0506

Please sign in to comment.