Skip to content

Commit

Permalink
Merge pull request #21 from reside-ic/glue-1.8.0
Browse files Browse the repository at this point in the history
Use glue_data when data is a list
  • Loading branch information
r-ash authored Oct 1, 2024
2 parents 0109a84 + 0625461 commit 0bfebd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: traduire
Title: Internationalisation on the Fly
Version: 0.1.0
Version: 0.1.1
Authors@R:
c(person(given = "Rich",
family = "FitzJohn",
Expand All @@ -18,7 +18,7 @@ Encoding: UTF-8
Imports:
V8,
R6,
glue
glue (>= 1.8.0)
Suggests:
jsonlite,
knitr,
Expand Down
2 changes: 1 addition & 1 deletion R/i18n.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ i18n_backend_read <- function(pattern, language, namespace) {
return(jsonlite::unbox("null"))
}
data <- list(language = language, namespace = namespace)
path <- glue::glue(pattern, .envir = data)
path <- glue::glue_data(data, pattern)
tryCatch(
read_input(path),
error = function(e) {
Expand Down
2 changes: 1 addition & 1 deletion R/lint_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lint_translations_html_report <- function(x) {
d <- list(title = title, style = style, script = script,
tabs = tabs, content = content)

unclass(glue::glue(template, .envir = d))
unclass(glue::glue_data(d, template))
}


Expand Down

0 comments on commit 0bfebd7

Please sign in to comment.