Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to translate "expand all - collapse all" #3

Closed
feddelegrand7 opened this issue Aug 10, 2020 · 4 comments
Closed

Option to translate "expand all - collapse all" #3

feddelegrand7 opened this issue Aug 10, 2020 · 4 comments

Comments

@feddelegrand7
Copy link

Hi,

Thank you for the great package, I'm enjoying it, it's easy to use and powerful however is it possible to allow the user to change the language of "expand all - collapse all" button, for example in French "montrer tout - cacher tout". It would be awesome if one can just type the text that should be visible within this button.

Thanks.

@jienagu
Copy link
Owner

jienagu commented Aug 10, 2020

Yes, I will include it in the next fix! Thank you so much for your suggestion! 👍

@feddelegrand7
Copy link
Author

Thanks @jienagu :)

@jienagu
Copy link
Owner

jienagu commented Aug 25, 2020

@feddelegrand7
Hi, see the latest announcement in Readme. I include this feature in the dev version. Here is an example:

devtools::install_github("jienagu/faq")
library(faq)
df <- data.frame(
  question = c("Question1", "Question2", "Question3"),
  answer = c("answer for question1", 
             "question2 answer", 
             "answer3")
)
faq::faq(data = df, elementId = "faq", faqtitle = "Frequently Asked Questions",
         expand_all_button_text = "+ montrer tout", 
         collapse_all_button_text = "- cacher tout")

Hope you like it! :)

@feddelegrand7
Copy link
Author

Awesome !!! Thank you so much @jienagu 🙏🏼🙏🏼🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants