Sets the current internalisation state (I18N_STATE) to a provided dictionary and language, and evaluates a provided expression. This macro is called automatically within new_timeline and most users will never need to call it directly.

with_i18n_state(
  dictionary = stop("dictionary not supplied"),
  language = stop("language not supplied"),
  x = stop("x not supplied")
)

Arguments

dictionary

An internationalisation dictionary as created by i18n_dict.

language

A language code corresponding to a language supported in dictionary.

x

Expression to evaluate.

Value

The result of evaluating x using the provided dictionary and language.