Skip to content

Commit 93ee991

Browse files
committed
Exclude assets/ from locale
1 parent 32bb5f1 commit 93ee991

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/functions.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Helper function to create a locale/lang directory populated with
22
# files needed for translation
3-
create_locale <- function(lang) {
3+
swcja_create_locale <- function(lang) {
44

55
# Create locale/{lang} folder if it does not yet exist
6-
fs::dir_create(glue::glue("locale/{lang}"))
6+
locale_lang <- glue::glue("locale/{lang}")
7+
if (!fs::dir_exists(locale_lang)) fs::dir_create(locale_lang)
78

89
# Copy all files needed for building webpage with quarto to locale/{lang}
910
file_tibble <-
@@ -12,7 +13,7 @@ create_locale <- function(lang) {
1213
dplyr::filter(
1314
stringr::str_detect(
1415
file,
15-
"^docs|po|R|renv|.Rprofile|renv.lock|locale",
16+
"^docs|po|R|renv|.Rprofile|renv.lock|locale|assets",
1617
negate = TRUE
1718
)
1819
) %>%

0 commit comments

Comments
 (0)