This function generates a translation table by translating a list of words into multiple 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
words <- c("Hello", "Translate", "Table", "Script")
languages <- c("es", "fr", "de", "nl")
translations <- create_translation_table(words, languages)
print(translations)
#> original_word es fr de nl
#> 1 Hello Hola Bonjour Hallo Hallo
#> 2 Translate Traducir Traduire Übersetzen Vertalen
#> 3 Table Mesa Tableau Tisch Tafel
#> 4 Script Guion Scénario Skript Script