i18n.js
54 lines
| 1 | // https://developer.wordpress.org/block-editor/how-to-guides/internationalization/ |
| 2 | |
| 3 | const { __ } = wp.i18n; |
| 4 | |
| 5 | const i18n = {}; |
| 6 | |
| 7 | i18n.COMMON = { |
| 8 | MODULES: __( 'Modules', 'ai-engine' ), |
| 9 | SETTINGS: __( 'Settings', 'ai-engine' ), |
| 10 | CHATBOT: __( 'Chatbot', 'ai-engine' ), |
| 11 | STATISTICS: __( 'Statistics', 'ai-engine' ), |
| 12 | STYLE: __( 'Style', 'ai-engine' ), |
| 13 | ENABLE: __( 'Enable', 'ai-engine' ), |
| 14 | NAME: __( 'Name', 'ai-engine' ), |
| 15 | SUBMIT: __( 'Submit', 'ai-engine' ), |
| 16 | MODEL: __( 'Model', 'ai-engine' ), |
| 17 | TEMPERATURE: __( 'Temperature', 'ai-engine' ), |
| 18 | MAX_TOKENS: __( 'Max Tokens', 'ai-engine' ), |
| 19 | STOP_SEQUENCE: __( 'Stop Sequence', 'ai-engine' ), |
| 20 | USAGE: __( 'Usage', 'ai-engine' ), |
| 21 | } |
| 22 | |
| 23 | i18n.HELP = { |
| 24 | TEMPERATURE: __( 'Between 0 and 1. Higher values means the model will take more risks.', 'ai-engine' ), |
| 25 | MAX_TOKENS: __( 'The maximum number of tokens to generate. The model will stop generating once it hits this limit.', 'ai-engine' ), |
| 26 | STOP_SEQUENCE: __( 'The sequence of tokens that will cause the model to stop generating text. You absolutely need this with fine-tuned models.', 'ai-engine' ), |
| 27 | USAGE: __( 'Keeps track of the current usage of the AI.', 'ai-engine' ), |
| 28 | } |
| 29 | |
| 30 | i18n.SETTINGS = { |
| 31 | INTRO: __( 'Boost your WordPress with AI! Don\'t forget to visit the <a href="https://meowapps.com/ai-engine/" target="_blank">AI Engine website</a> for more information. Have fun! 🎵', 'ai-engine' ), |
| 32 | MODULES_INTRO: __( 'To avoid cluttering the UI and your WP, only enable the features you need.', 'ai-engine' ) |
| 33 | } |
| 34 | |
| 35 | i18n.CONTENT_GENERATOR = { |
| 36 | INTRO: __( 'The Content Generator is a powerful tool that can generate content for you. It can be used to generate articles, emails, or even code. It can also be used to generate content for your chatbot. <b>Let me know if there are any new features you would like to see!</b> Have fun 🥳', 'ai-engine' ), |
| 37 | } |
| 38 | |
| 39 | i18n.TEMPLATES = { |
| 40 | TEMPLATES: __( 'Templates', 'ai-engine' ), |
| 41 | DELETE_CONFIRM: __( 'Are you sure you want to delete this template?', 'ai-engine' ), |
| 42 | NEW_TEMPLATE_NAME: __( 'New Template', 'ai-engine' ), |
| 43 | EDIT: __( 'EDIT', 'ai-engine' ), |
| 44 | JOIN_US: __( 'Interested in sharing and/or looking for more templates? Join us on the <a target="_blank" href="https://wordpress.org/support/topic/common-use-cases-for-templates">Templates Threads</a> in the forums.', 'ai-engine' ), |
| 45 | } |
| 46 | |
| 47 | i18n.PLAYGROUND = { |
| 48 | INTRO: __( 'Welcome to the AI Playground! Here, you can play with different AI models and ask the UI to perform various tasks for you. You can ask it to write, rewrite, or translate an article, categorize words or elements into groups, write an email, etc. <b>Let me know if there are any new features you would like to see!</b> Have fun 🥳', 'ai-engine' ), |
| 49 | PROMPT: __( 'Query / Prompt', 'ai-engine' ), |
| 50 | ANSWER: __( 'Answer', 'ai-engine' ), |
| 51 | } |
| 52 | |
| 53 | export default i18n; |
| 54 |