Skip to content

Commit

Permalink
Update packages/core/src/components/MapContainer.vue
Browse files Browse the repository at this point in the history
apply suggestion "consistently rename lng"

Co-authored-by: Pascal Röhling <[email protected]>
  • Loading branch information
warm-coolguy and dopenguin authored Feb 4, 2025
1 parent 3156c60 commit fc91d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/MapContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export default Vue.extend({
}
this.updateListeners(this.hasWindowSize)
this.setConfiguration(this.mapConfiguration)
this.mapConfiguration.locales?.forEach?.((lng: Locale) =>
i18next.addResourceBundle(lng.type, 'common', lng.resources, true)
this.mapConfiguration.locales?.forEach?.((locale: Locale) =>
i18next.addResourceBundle(locale.type, 'common', locale.resources, true)
)
i18next.on('languageChanged', (lang) => (this.lang = lang))
Expand Down

0 comments on commit fc91d19

Please sign in to comment.