Skip to content

Use lang from config for code chunks output#645

Draft
Bisaloo wants to merge 1 commit into
carpentries:mainfrom
Bisaloo:use-config-lang-output
Draft

Use lang from config for code chunks output#645
Bisaloo wants to merge 1 commit into
carpentries:mainfrom
Bisaloo:use-config-lang-output

Conversation

@Bisaloo

@Bisaloo Bisaloo commented Mar 27, 2025

Copy link
Copy Markdown
Contributor

This is a quick proof of concept of how #644 could be fixed. I tested in on one of our Spanish lessons and it seems to work as expected.

Comment thread R/build_episode.R
"RENV_PROFILE" = profile,
"RENV_CONFIG_CACHE_SYMLINKS" = renv_cache_available())
"RENV_CONFIG_CACHE_SYMLINKS" = renv_cache_available(),
"LANGUAGE" = get_config()$lang,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not completely sure if we should rely on get_config()'s default arg here, or provide another value?

I'd welcome any insights on this, or I will investigate more myself once #644 have been decided.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the failing checks seem to have answered this. A different value is needed. The default only works for the standard setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant