|
|
|
|
|
by 1mbsite
1000 days ago
|
|
Awesome I’m glad it’s resolved. There is still some prompting that goes into it. So in your case you might start off saying something like “when editing a page in dashboard show a google translate button by the save button that when clicked asks me for a language to translate to; use google translate API to translate page contents and then create {{page_name}}-{{language}} page and save it.” But honestly I’d do something like “If somebody adds ?language=language_here to the end of a page use the Google Translate API to translate the page content. Cache the translation until page is updated again.” Toy around a bit and tweak prompt until initial generation fits your needs. It also won’t get super complex things right on the first try. Get an initial version saved and then switch to edit mode and add additional functionality 1 prompt at a time. Even say things like “that’s not exactly what I asked for do this”, “there’s a bug fix it”, “add a settings page to admin dashboard so I can enter Google Translate API key”, “add a translate button to the footer of all pages”, etc. As codebase gets more in line with what you want IntelliPlugin will start working smarter. |
|