diff --git a/.github/workflows/sandpaper-main.yaml b/.github/workflows/sandpaper-main.yaml index b3d1de8c8c..7a9aaedc43 100644 --- a/.github/workflows/sandpaper-main.yaml +++ b/.github/workflows/sandpaper-main.yaml @@ -5,6 +5,7 @@ on: branches: - main - master + - l10n_main schedule: - cron: '0 0 * * 2' workflow_dispatch: @@ -36,6 +37,8 @@ jobs: - name: "Checkout Lesson" uses: actions/checkout@v4 + with: + ref: l10n_main - name: "Set up R" uses: r-lib/actions/setup-r@v2 @@ -56,9 +59,21 @@ jobs: with: cache-version: ${{ secrets.CACHE_VERSION }} + - name: Create and populate .Renviron file with LANG_CODE secret + run: | + echo "LANG_CODE=${{ secrets.LANG_CODE }}" >> ~/.Renviron + - name: "Deploy Site" run: | reset <- "${{ github.event.inputs.reset }}" == "true" + options(repos = c(carpentries = "https://carpentries.r-universe.dev/", CRAN = "https://cran.rstudio.com/")) + renv::install("carpentries/sandpaper") + renv::install("joelnitta/dovetail") sandpaper::package_cache_trigger(TRUE) - sandpaper:::ci_deploy(reset = reset) + lesson_trans_dir <- paste0(tempdir(), "/dovetail-", Sys.Date()) + lang_code <- Sys.getenv("LANG_CODE", unset = "en") + dovetail:::make_translated_dir( + translated_dir = lesson_trans_dir, overwrite = TRUE, lang = lang_code, + l10n_branch = NULL, clean = FALSE) + sandpaper:::ci_deploy(path = lesson_trans_dir, reset = reset) shell: Rscript {0} diff --git a/README.md b/README.md index 8d6ad1aa66..44642eec32 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,16 @@ -[![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://slack-invite.carpentries.org/) -[![Slack Status](https://img.shields.io/badge/Slack_Channel-swc--git-E01563.svg)](https://carpentries.slack.com/messages/C91JS49HD) +[![Create a Slack Account with us][create_slack_svg]][slack_invite] -# git-novice +# Internationalisation hub repository for Software Carpentry git-novice An introduction to version control for novices using Git. -Please see [https://swcarpentry.github.io/git-novice/](https://swcarpentry.github.io/git-novice/) for a rendered version of this material, -or [the lesson template documentation][lesson-example] for instructions on formatting, building, and submitting material. - -Maintainers: +Please see [https://swcarpentry.github.io/git-novice/](https://swcarpentry.github.io/git-novice/) for a rendered version of this material in english. -- [Kat Koziar][koziar_kat]: [@kekoziar](https://github.com/kekoziar) -- [Martino Sorbaro][sorbaro_mart]: [@martinosorb](https://github.com/martinosorb) +More info to follow. -Alumni maintainers: +[create_slack_svg]: https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg +[slack_invite]: https://slack-invite.carpentries.org/ -- [Ivan Gonzalez][gonzalez_ivan]: [@iglpdc](https://github.com/iglpdc) -- [Daisie Huang][huang_daisie]: [@daisieh](https://github.com/daisieh) -- [Nima Hejazi][hejazi_nima]: [@nhejazi](https://github.com/nhejazi) -- [Madicken Munk][munk_madicken]: [@munkm](https://github.com/munkm) +[![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://slack-invite.carpentries.org/) +[![Slack Status](https://img.shields.io/badge/Slack_Channel-swc--git-E01563.svg)](https://carpentries.slack.com/messages/C91JS49HD) -[lesson-example]: https://carpentries.github.io/sandpaper-docs/ -[hejazi_nima]: https://carpentries.org/instructors/#nhejazi -[koziar_kat]: https://carpentries.org/instructors/#kekoziar -[munk_madicken]: https://carpentries.org/instructors/#munkm -[gonzalez_ivan]: https://carpentries.org/instructors/#iglpdc -[huang_daisie]: https://software-carpentry.org/team/#huang_daisie -[sorbaro_mart]: https://carpentries.org/instructors/#martinosorb diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 0000000000..161a887d03 --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,41 @@ +preserve_hierarchy: true + +files: + - source: /episodes/*.Rmd + dest: /episodes/%file_name%.md + type: md + translation: /locale/%two_letters_code%/episodes/%original_file_name% + update_option: update_as_unapproved + - source: /episodes/*.md + translation: /locale/%two_letters_code%/episodes/%original_file_name% + update_option: update_as_unapproved + - source: /instructors/*.md + translation: /locale/%two_letters_code%/instructors/%original_file_name% + update_option: update_as_unapproved + - source: /learners/*.md + translation: /locale/%two_letters_code%/learners/%original_file_name% + update_option: update_as_unapproved + - source: /profiles/*.md + translation: /locale/%two_letters_code%/profiles/%original_file_name% + update_option: update_as_unapproved + - source: /CODE_OF_CONDUCT.md + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved + - source: /config.yaml + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved + - source: /CONTRIBUTING.md + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved + - source: /LICENSE.md + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved + - source: /README.md + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved + - source: /index.md + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved + - source: /links.md + translation: /locale/%two_letters_code%/%original_file_name% + update_option: update_as_unapproved \ No newline at end of file