我想借助提供的国际化文件将我的数据表翻译成闪亮的,但我不需要链接到网站,而是需要链接我的计算机上的文件(没有互联网连接的虚拟机)\n我怎样才能实现这一目标?
\n\n我尝试按照此处的步骤进行操作https://rstudio.github.io/DT/004-i18n.html但不是使用“ http://cdn.datatables.net/plug-ins/1.10.19/i18n/French .json ”,我尝试使用“file:///www/French.json”但没有成功
\n\n这是我的代码
\n\nlibrary(DT)\n\nui <- basicPage(\n DT::dataTableOutput("mytable")\n)\n\nserver <- function(input, output) {\n output$mytable = DT::renderDataTable(\n mtcars,\n options = list(\n language = list(url = "file:///www/French.json")\n ))\n}\n\nshinyApp(ui, server)\nRun Code Online (Sandbox Code Playgroud)\n\n编辑:我尝试过但没有运气
\n\nlanguage = list({\n "language": {\n "sProcessing": "Traitement en cours ...",\n "sLengthMenu": "Afficher _MENU_ lignes",\n "sZeroRecords": "Aucun r\xc3\xa9sultat trouv\xc3\xa9",\n "sEmptyTable": "Aucune donn\xc3\xa9e disponible",\n "sInfo": "Lignes _START_ \xc3\xa0 _END_ sur _TOTAL_",\n "sInfoEmpty": "Aucune ligne affich\xc3\xa9e",\n "sInfoFiltered": "(Filtrer un maximum de_MAX_)",\n "sInfoPostFix": "",\n "sSearch": "Chercher:",\n "sUrl": "",\n …Run Code Online (Sandbox Code Playgroud)