MichaelChirico / potools

Tools for working with translations in R
https://michaelchirico.github.io/potools/
58 stars 3 forks source link

Function idea: use_potools() for initial setup #306

Open maelle opened 10 months ago

maelle commented 10 months ago

When starting to use potools in a package, the first step is to register the potools usage style in DESCRIPTION.

Could there be a function for doing this, use_potools(style = "explicit") (so the explicit style would be the default one)?

And if the style is explicit, then the function would also create R/utils-potools.R with the definition of tr_().

Then the function would indicate the next steps: wrap text in tr_(), run po_extract() and po_create().

MichaelChirico commented 10 months ago

Related: #39