Skip to content

Commit

Permalink
inbo/vlaams-biodiversiteitsportaal#116: Allow using a fixed locale to…
Browse files Browse the repository at this point in the history
… prevent issues with number formatting when adding layers.

AtlasOfLivingAustralia#247
  • Loading branch information
StefanVanDyck committed Oct 24, 2024
1 parent 05ae0d8 commit 842c360
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,5 @@ openapi:
version: '@info.app.version@'
cachetimeoutms: 4000

# Allow setting a fixed locale to prevent number formatting issues: https://github.com/AtlasOfLivingAustralia/spatial-service/issues/247
#useFixedLocale: en
8 changes: 5 additions & 3 deletions grails-app/conf/spring/resources.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ beans = {
noSSOStrategy(NoSSOStrategy) {}
}

// Use fixed English locale, prevents issues with parsing of BBox decimal values in some locales
// https://github.com/AtlasOfLivingAustralia/spatial-service/issues/247
localeResolver(FixedLocaleResolver, new Locale('en'))
if (grailsApplication.config.useFixedLocale) {
// Use fixed English locale, prevents issues with parsing of BBox decimal values in some locales
// https://github.com/AtlasOfLivingAustralia/spatial-service/issues/247
localeResolver(FixedLocaleResolver, new Locale(grailsApplication.config.useFixedLocale))
}
}

0 comments on commit 842c360

Please sign in to comment.