Skip to content

Commit

Permalink
Merge pull request #1643 from rstudio/fix-normalize-locale-interactiv…
Browse files Browse the repository at this point in the history
…e-tbl

Ensure that supplied locale is normalized when creating an interactive table
  • Loading branch information
rich-iannone authored Apr 27, 2024
2 parents 4f8c6b1 + ca2a2e3 commit f327659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/render_as_i_html.R
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

1 comment on commit f327659

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.