Skip to content

Commit

Permalink
Increment version to 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tin900 committed Feb 12, 2024
1 parent d942f6e commit 3b6cb49
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: polyglotr
Title: Translate Text
Version: 1.3.1
Version: 1.4.0
Authors@R:
person("Tomer", "Iwan", , "t.iwan@vu.nl", role = c("aut", "cre", "cph"))
Description: The goal of the this package is to provide easy methods to
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# polyglotr 1.4.0
* Adds QCRI methods
* Adds Pons methods
* Adds Wikimedia Foundation methods
* Adds Google Transliteration methods

# polyglotr 1.3.1
* fixes testing issue in CRAN checks

Expand Down
4 changes: 2 additions & 2 deletions R/wmcloud_translate.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param content The content to translate. Can be plain text, a URL (for a webpage), a JSON string, or a Markdown string.
#' @param target_language The target language for the translation (default is "en").
#' @param source_language The source language of the content (default is "en").
#' @param format The format of the content ("html", "json", "markdown", "text", "svg", "webpage").
#' @param format The format of the content ("json", "markdown", "text", "webpage").
#' @param model The model to use for the translation (only "nllb200-600M" is currently known to work).
#'
#' @return The translated content.
Expand Down Expand Up @@ -48,7 +48,7 @@ wmcloud_translate <- function(content,
url <- "https://translate.wmcloud.org/api/translate"

# List of valid formats
valid_formats <- c("html", "json", "markdown", "text", "svg", "webpage")
valid_formats <- c("json", "markdown", "text", "webpage")

# List of valid models
valid_models <- c("nllb200-600M") # Add more models here
Expand Down
2 changes: 1 addition & 1 deletion man/wmcloud_translate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b6cb49

Please sign in to comment.