File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Helper function to create a locale/lang directory populated with
2
2
# files needed for translation
3
- create_locale <- function (lang ) {
3
+ swcja_create_locale <- function (lang ) {
4
4
5
5
# 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 )
7
8
8
9
# Copy all files needed for building webpage with quarto to locale/{lang}
9
10
file_tibble <-
@@ -12,7 +13,7 @@ create_locale <- function(lang) {
12
13
dplyr :: filter(
13
14
stringr :: str_detect(
14
15
file ,
15
- " ^docs|po|R|renv|.Rprofile|renv.lock|locale" ,
16
+ " ^docs|po|R|renv|.Rprofile|renv.lock|locale|assets " ,
16
17
negate = TRUE
17
18
)
18
19
) %> %
You can’t perform that action at this time.
0 commit comments