create_translation_table: Create a Translation Table

View source: R/create_translation_table.R

create_translation_tableR Documentation

Create a Translation Table

Description

This function generates a translation table by translating a list of words into multiple languages.

Usage

create_translation_table(words, languages)

Arguments

words

A character vector containing the words to be translated.

languages

A character vector specifying the target languages for translation.

Value

A data frame representing the translation table with original words and translations in each language.

Examples

## Not run: 
words <- c("Hello", "Translate", "Table", "Script")
languages <- c("es", "fr", "de", "nl")
translations <- create_translation_table(words, languages)
print(translations)

## End(Not run)

polyglotr documentation built on Sept. 11, 2024, 6:35 p.m.