The goal of pockage is to showcase usage of potools for translating messages in a package.
You can install the development version of pockage from GitHub with:
# install.packages("pak")
pak::pak("maelle/pockage")
This is a basic example which shows you how pockage behaves:
library(pockage)
speak()
#> ℹ Hello Maëlle Salmon!
withr::with_language("es", speak())
#> ℹ Hola Maëlle Salmon!
withr::with_language("ca", speak())
#> ℹ Hola Maëlle Salmon!
withr::with_language("fr", speak())
#> ℹ Salut Maëlle Salmon !