Replies: 2 comments 2 replies
-
Is this a suggestion to include this kind of navigation in the repository? I think it's certainly a good idea. |
Beta Was this translation helpful? Give feedback.
-
What I have done for now is simply use the following prompt.
In order to make sure this works reliably I make sure this HTML header already exists in the original README file. However, it would be even nicer if the action is also able to modify to source README file to update the HTML navigation header, e.g. to add a new language. Also, this requires to follow a specific format, e.g. using the language culture name in the extension. It would also be nice for the language model to know the file names / paths for each language for example by making it available as a variable. |
Beta Was this translation helpful? Give feedback.
-
Goals
Prompt the model to update the source README file and README files in other languages with a navigation header, e.g.:
English | 简体中文 | Deutsch
Non-Goals
No response
Background
It would be nice to automate adding a multi-language navigation workflow.
Proposal
The easiest would probably be to prompt the language model to update a navigation section at the top of each README file. For example, add all existing README files and a prompt like this:
Make sure that {targetLanguage} is linked to the corresponding README file using its Language Culture Name.
Keep the HTML snippet in the same place as in the source file or add it at the top and keep existing languages.
For example, for English, Chinese and German the top of the README should look like this:
English | 简体中文 | Deutsch
Beta Was this translation helpful? Give feedback.
All reactions