From ca2a2e3a8d37c405d4b4188c0be6271c2167bdcc Mon Sep 17 00:00:00 2001 From: Richard Iannone Date: Sat, 27 Apr 2024 17:44:44 -0400 Subject: [PATCH] Normalize locale after obtaining it --- R/render_as_i_html.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/render_as_i_html.R b/R/render_as_i_html.R index 5fe94c41c3..0808554270 100644 --- a/R/render_as_i_html.R +++ b/R/render_as_i_html.R @@ -54,7 +54,7 @@ render_as_ihtml <- function(data, id) { has_tab_spanners <- dt_spanners_exists(data = data) # Obtain the language from the `locale`, if provided - locale <- dt_locale_get_value(data = data) + locale <- normalize_locale(dt_locale_get_value(data = data)) # Generate a `lang_defs` object to pass to the `language` argument if (is.null(locale) || locale == "en") {