-
Notifications
You must be signed in to change notification settings - Fork 285
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
Function to set Language field #2058
Comments
I got some feedback asking why would one need such function while create_package already shows how to setup Language. My reasoning is that in old or new packages sometimes the development is in one language and then some other language is used after the package is created. For example data.table is developed in English and it doesn't have the Language field. But it also have error messages translated to Spanish, Mandarin and Portuguese, and this is not show in the Description. Showing these language would help users to find it and use the translations. |
It would be nice to apply some simple formatting rules to at least standardize the types of things that already appear in
|
This feels a bit too special purpose for usethis to me, given that it's not hard to add it manually or with desc. |
usethis adds the field in some cases for spellcheck and thought this would be a good small extension, but maybe this functionality should be closer to translation helpers like potools. |
It would be great if usethis could help developers to specify the language of their packages. This is currently only done in 9% of packages, and there are only a 3% that are in other languages. Having the tools to create them would be great
According to WRE:
Is there interest in a PR to add this?
I think it is easy to add a field checking that the language is well formatted (nchar >= 2 && lower case), but perhaps an ideal solution would be to check for the official rules (which I don't know how easy would be that).
A rough draft of the behavior would be something like:
The text was updated successfully, but these errors were encountered: