diff --git a/DESCRIPTION b/DESCRIPTION index cd82e5d..27fec03 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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", @@ -18,7 +18,7 @@ Encoding: UTF-8 Imports: V8, R6, - glue + glue (>= 1.8.0) Suggests: jsonlite, knitr, diff --git a/R/i18n.R b/R/i18n.R index 80adb85..94c2206 100644 --- a/R/i18n.R +++ b/R/i18n.R @@ -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) { diff --git a/R/lint_report.R b/R/lint_report.R index 937b293..102deb6 100644 --- a/R/lint_report.R +++ b/R/lint_report.R @@ -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)) }