Skip to content

Commit ed25195

Browse files
Update vignettes/_translation_links.R
Co-authored-by: Michael Chirico <[email protected]>
1 parent 7c661b4 commit ed25195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/_translation_links.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
pattern = glob2rx(knitr::current_input(FALSE))
1414
)
1515
transl_lang = ifelse(dirname(translation) == ".", "en", dirname(translation))
16-
block = if (length(which(transl_lang != lang))) {
16+
block = if (!all(transl_lang == lang)) {
1717
sprintf(
1818
fmt, paste(collapse = " | ", sprintf(
1919
"[%s](%s)",

0 commit comments

Comments
 (0)