# create example package
pkg <- dummy_pkg()
# get messages in memory
get_messages(pkg = pkg)
# spell check messages
spell_check_msgs(pkg = pkg)
# setup pkg for localization
use_localization(pkg = pkg)
# make a translation
tran <- make_translation("es", translator = "Some Person <example@examle.com>", pkg = pkg)
write_translation(tran, pkg = pkg)
# install translation(s)
check_translations(pkg = pkg) # check for errors before install
install_translations(pkg = pkg)
Run the code above in your browser using DataLab