Hi all! With respect to i18n using Thymeleaf, the ...
# ktor
j
Hi all! With respect to i18n using Thymeleaf, the current feature doesn't allow for passing a Locale object through to Thymeleaf for use in accessing the properties files of other languages; the feature is using a constructor that ultimately falls back to the default locale of the server. I've submitted a PR to allow for passing in a locale to use for template rendering (which matches the solution used in the Pebble template feature), though it's been sitting idle so I was hoping to draw attention to it. The PR is here: https://github.com/ktorio/ktor/pull/1951 The similar, existing functionality in the Pebble feature can be seen here: https://github.com/ktorio/ktor/blob/master/ktor-features/ktor-pebble/jvm/src/io/ktor/pebble/Pebble.kt#L27