Skip to content

Commit

Permalink
Merge pull request swcarpentry-i18n#1 from swcarpentry-i18n/init-i18n
Browse files Browse the repository at this point in the history
Prepare for i18n
  • Loading branch information
tobyhodges authored Oct 3, 2024
2 parents 1ccc5d8 + f823e5a commit ac424df
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 51 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/sandpaper-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- master
- l10n_main
schedule:
- cron: '0 0 * * 2'
workflow_dispatch:
Expand Down Expand Up @@ -33,6 +34,8 @@ jobs:

- name: "Checkout Lesson"
uses: actions/checkout@v4
with:
ref: l10n_main

- name: "Set up R"
uses: r-lib/actions/setup-r@v2
Expand All @@ -53,9 +56,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}
53 changes: 3 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,6 @@
[![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://slack-invite.carpentries.org/)
![Build and Deploy Website](https://github.com/swcarpentry/r-novice-gapminder/workflows/Build%20and%20Deploy%20Website/badge.svg)
[![Slack Status](https://img.shields.io/badge/Slack_Channel-swc--r--gapminder-E01563.svg)](https://carpentries.slack.com/messages/C9Y0M3YKG)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/swcarpentry/r-novice-gapminder/binder?urlpath=rstudio)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3265164.svg)](https://doi.org/10.5281/zenodo.3265164)

# R for Reproducible Scientific Analysis
# Internationalisation hub repository for Software Carpentry R for Reproducible Scientific Analysis

An introduction to R for non-programmers using the [Gapminder][gapminder] data.
Please see [https://swcarpentry.github.io/r-novice-gapminder](https://swcarpentry.github.io/r-novice-gapminder) for a rendered version of this material,
[the lesson template documentation][lesson-example]
for instructions on formatting, building, and submitting material,
or run `make` in this directory for a list of helpful commands.

The goal of this lesson is to teach novice programmers to write modular code
and best practices for using R for data analysis. R is commonly used in many
scientific disciplines for statistical analysis and its array of third-party
packages. We find that many scientists who come to Software Carpentry workshops
use R and want to learn more. The emphasis of these materials is to give
attendees a strong foundation in the fundamentals of R, and to teach best
practices for scientific computing: breaking down analyses into modular units,
task automation, and encapsulation.

Note that this workshop focuses on the fundamentals of the programming
language R, and not on statistical analysis.

The lesson contains more material than can be taught in a day. The [instructor notes page]({{ page.root }}/guide) has some suggested lesson plans suitable for a one or half day workshop.

A variety of third party packages are used throughout this workshop. These
are not necessarily the best, nor are they comprehensive, but they are
packages we find useful, and have been chosen primarily for their
usability.

Current Maintainers:

- [Naupaka Zimmerman][zimmerman_naupaka]
- [Sehrish Kanwal](https://github.com/skanwal)
- [Matthieu Bruneaux](https://github.com/matthieu-bruneaux)

Previous Maintainers:

- [David Mawdsley][mawdsley_david]
- [Jeff Oliver][oliver_jeffrey]
- Tom Wright

[gapminder]: https://www.gapminder.org/
[lesson-example]: https://carpentries.github.io/lesson-example
[zimmerman_naupaka]: https://carpentries.org/maintainers/#naupaka
[mawdsley_david]: https://carpentries.org/maintainers/#mawds
[oliver_jeffrey]: https://carpentries.org/maintainers/#jcoliver


Please see [https://swcarpentry.github.io/r-novice-gapminder](https://swcarpentry.github.io/r-novice-gapminder) for a rendered version of this material in English.

More info to follow.
41 changes: 41 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
preserve_hierarchy: true

files:
- source: /episodes/*.Rmd
dest: /episodes/%file_name%.Rmd
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

0 comments on commit ac424df

Please sign in to comment.