Skip to contents

Add a translation to a data tag

Usage

LNaddTranslation(
  tagText = NA,
  lang = "en-US",
  parentID = NA,
  tagID = NA,
  isHidden = TRUE
)

Arguments

tagText

A character scalar containing the translated text to enclose in the tag

lang

A character scalar specifying the language attribute to mark the translation text as. See https://www.w3.org/International/articles/language-tags/the W3C guide to language tags for the best format to use for this attribute

parentID

A character scalar containing the ID for the parent tag (if there is one). NA denotes that there is no parent for the tag

tagID

A character scalar containing a unique identifier for the tag element. If the parameter is NA then a UUID will be generated

isHidden

A logical scalar that, if TRUE, denotes that the text should be hidden when rendered

Value

A character scalar containing the rendered output including any HTML tags if a HTML document is being knitted

Author

Joseph D. Chipperfield, joechip90@googlemail.com; Matthew Grainger, matthew.grainger@nina.no