Skip to content

Commit 25cafd1

Browse files
committed
use full path when retrieving allowable set of locales
1 parent 5fffbf8 commit 25cafd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plotly.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ locale_dependency <- function(locale) {
473473
}
474474

475475
locale_dir <- dependency_dir("plotlyjs", "locales")
476-
locales_all <- sub("\\.js$", "", list.files(locale_dir))
476+
locales_all <- sub("\\.js$", "", list.files(system.file(locale_dir, package = "plotly")))
477477
if (!tolower(locale) %in% locales_all) {
478478
stop(
479479
"Invalid locale: '", locale, "'.\n\n",

0 commit comments

Comments
 (0)