Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upsupport for changing the language of the user interface of `reactable` #24
Comments
|
Hi, thanks for the suggestion. Agreed that this would be useful, and it'll probably be one of the next things I work on. I don't know if there will be translations like in DataTables, but there will definitely be a way to customize text and labels in the table for different locales. |
|
There's now basic support for customizing the language strings in the development version: https://glin.github.io/reactable/reference/reactableLang.html Here's one example: https://glin.github.io/reactable/articles/examples.html#language-options And another of a partial Chinese translation, based on the DataTables translation: reactable(
iris[1:30, ],
searchable = TRUE,
showPageSizeOptions = TRUE,
language = reactableLang(
searchPlaceholder = "搜索",
searchLabel = "搜索",
noData = "没有匹配结果",
pageSizeOptions = "显示 {rows}",
pageInfo = "{rowStart} 至 {rowEnd} 项结果,共 {rows} 项",
pagePrevious = "上页",
pageNext = "下页",
# The previous/next page button text is descriptive enough, don't need additional labels
pagePreviousLabel = "",
pageNextLabel = ""
)
) |
|
Thanks a lot! |

Hi,
Thanks for writing such an awesome package!
As a Chinese user, I think it would be useful if the package could support setting the language of user interface of
reactablejust like theDTpackage.Here is a nice example from the
DTpackage.