pivta icon indicating copy to clipboard operation
pivta copied to clipboard

Add localization: Argument to the pivta() function

Open ragapack opened this issue 4 years ago • 2 comments

Hi, Very nice tool for my Shiny apps, as I need the Portuguese Language support I want to ask you for the possibility to add this argument to the pivta() function. localization = "https://cdn.webdatarocks.com/loc/xx.json" Thank you Thomas

ragapack avatar Aug 22 '21 18:08 ragapack

Hi, @ragapack very sorry for the late answer I just saw the issue. Unfortunately, I'm a bit tight on time at the moment, I'll try to do it asap but in the meantime if you want feel free to submit a PR.

Sorry again. Best. Fodil

feddelegrand7 avatar Sep 21 '21 13:09 feddelegrand7

Hi Fodil, Thank you for your answer, I made a fork and solved in part the localization. https://github.com/ragapack/pivta If I open file with the the added local argument it works fine. pivta(dsource = "https://gist.githubusercontent.com/feddelegrand7/b366864aabf9653361f461cbf972d97c/raw/a62c4672f2f5824b2634a66c948e6258d7c65323/mpg.csv", local = "https://raw.githubusercontent.com/WebDataRocks/pivot-localizations/master/pr.json", sep = ",") But if after this open an other file using the the menu it goes back to the English localisation. There is a global object I found in the Documentation but I belive my code in the fork is wrong. If you have time please have a look. Thank you Thomas

ragapack avatar Sep 21 '21 16:09 ragapack