trans_path: Access translation path

View source: R/trans_path.R

trans_pathR Documentation

Access translation path

Description

This function allows setting translation path and accessing the currently set one.

Usage

trans_path(path)

Arguments

path

character(1)
Path to set, should be a folder containing JSON files (possibly in subdirectories).

Value

If path was not passed, currently set path, else nothing.

Examples

# Set path to example translations shipped with this package
trans_path(system.file("examples", package = "translated"))

# Check the current path
trans_path()


translated documentation built on April 25, 2023, 5:09 p.m.