Skip to content

Commit 568a614

Browse files
committed
bug fix
1 parent 2981813 commit 568a614

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
@@ -446,7 +446,7 @@ locale_dependency <- function(locale) {
446446
}
447447

448448
locale_dir <- depPath("plotlyjs", "locales")
449-
locales_all <- sub("\\.js$", "", list.files(localeDir))
449+
locales_all <- sub("\\.js$", "", list.files(locale_dir))
450450
if (!tolower(locale) %in% locales_all) {
451451
stop(
452452
"Invalid locale: '", locale, "'.\n\n",

0 commit comments

Comments
 (0)