i18n.js
104 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 | CHATBOT_HELP: __( 'Highly customizable chatbot.', 'ai-engine' ), |
| 12 | STATISTICS: __( 'Statistics', 'ai-engine' ), |
| 13 | STYLE: __( 'Style', 'ai-engine' ), |
| 14 | ENABLE: __( 'Enable', 'ai-engine' ), |
| 15 | NAME: __( 'Name', 'ai-engine' ), |
| 16 | SUBMIT: __( 'Submit', 'ai-engine' ), |
| 17 | MODEL: __( 'Model', 'ai-engine' ), |
| 18 | TEMPERATURE: __( 'Temperature', 'ai-engine' ), |
| 19 | MAX_TOKENS: __( 'Max Tokens', 'ai-engine' ), |
| 20 | STOP_SEQUENCE: __( 'Stop Sequence', 'ai-engine' ), |
| 21 | USAGE: __( 'Usage', 'ai-engine' ), |
| 22 | MODE: __( 'Mode', 'ai-engine' ), |
| 23 | CONTEXT: __( 'Context', 'ai-engine' ), |
| 24 | IMAGES_NUMBER: __( 'Number of Images', 'ai-engine' ), |
| 25 | AI_NAME: __( 'AI Name', 'ai-engine' ), |
| 26 | USER_NAME: __( 'User Name', 'ai-engine' ), |
| 27 | PLACEHOLDER: __( 'Placeholder', 'ai-engine' ), |
| 28 | START_SENTENCE: __( 'Start Sentence', 'ai-engine' ), |
| 29 | SEND: __( 'Send', 'ai-engine' ), |
| 30 | CLEAR: __( 'Clear', 'ai-engine' ), |
| 31 | SYSTEM_NAME: __( 'System Name', 'ai-engine' ), |
| 32 | ID: __( 'ID', 'ai-engine' ), |
| 33 | POPUP: __( 'Popup', 'ai-engine' ), |
| 34 | POSITION: __( 'Position', 'ai-engine' ), |
| 35 | ICON_TEXT: __( 'Icon Text', 'ai-engine' ), |
| 36 | FULL_SCREEN: __( 'Full Screen', 'ai-engine' ), |
| 37 | CASUALLY_FINE_TUNED: __( 'Casually Fine-Tuned', 'ai-engine' ), |
| 38 | CONTENT_AWARE: __( 'Content Aware', 'ai-engine' ), |
| 39 | |
| 40 | ASSISTANTS: __( 'Assistants', 'ai-engine' ), |
| 41 | TITLES_SUGGESTIONS: __( 'Titles Suggestions', 'ai-engine' ), |
| 42 | TITLES_SUGGESTIONS_HELP: __( 'Suggest titles based on the content.', 'ai-engine' ), |
| 43 | EXCERPTS_SUGGESTIONS: __( 'Excerpts Suggestions', 'ai-engine' ), |
| 44 | EXCERPTS_SUGGESTIONS_HELP: __( 'Suggest excerpts based on the content.', 'ai-engine' ), |
| 45 | GENERATORS: __( 'Generators', 'ai-engine' ), |
| 46 | WOOCOMMERCE_PRODUCT_GENERATOR: __( 'WooCommerce Product Generator', 'ai-engine' ), |
| 47 | WOOCOMMERCE_PRODUCT_GENERATOR_HELP: __( 'Write all the WooCommerce fields for a given product.', 'ai-engine' ), |
| 48 | CONTENT_GENERATOR: __( 'Content Generator', 'ai-engine' ), |
| 49 | CONTENT_GENERATOR_HELP: __( 'Generate articles. Support templates.', 'ai-engine' ), |
| 50 | IMAGES_GENERATOR: __( 'Images Generator', 'ai-engine' ), |
| 51 | IMAGES_GENERATOR_HELP: __( 'Generate images. Support templates.', 'ai-engine' ), |
| 52 | PLAYGROUND: __( 'Playground', 'ai-engine' ), |
| 53 | PLAYGROUND_HELP: __( 'Play with AI or let it perform various tasks for you. Support templates.', 'ai-engine' ), |
| 54 | FORMS: __( 'Forms', 'ai-engine' ), |
| 55 | FORMS_HELP: __( 'Build AI forms. Based on fields, users will be given answers or suggestions.', 'ai-engine' ), |
| 56 | STATISTICS: __( 'Statistics', 'ai-engine' ), |
| 57 | STATISTICS_HELP: __( 'Track AI interactions, check statistics, set limits, and more!', 'ai-engine' ), |
| 58 | DEBUG_MODE: __( 'Debug Mode', 'ai-engine' ), |
| 59 | DEBUG_MODE_HELP: __( 'Debugging information will be displayed in the console.', 'ai-engine' ), |
| 60 | API_KEY: __( 'API Key', 'ai-engine' ), |
| 61 | API_KEY_HELP: __( 'You can get your API Keys in your <a href="https://beta.openai.com/account/api-keys" target="_blank">OpenAI Account</a>.', 'ai-engine' ), |
| 62 | USAGE: __( 'Usage', 'ai-engine' ), |
| 63 | USAGE_HELP: __( 'For the exact amounts, please check your <a href="https://beta.openai.com/account/usage" target="_blank">OpenAI account</a>. If you would like to have better control on the amounts, add conditions or set limits to the usage of the AI, consider <a href="https://meowapps.com/ai-engine/" target="_blank">AI Engine Pro</a>.', 'ai-engine' ), |
| 64 | } |
| 65 | |
| 66 | i18n.HELP = { |
| 67 | TEMPERATURE: __( 'Between 0 and 1. Higher values means the model will take more risks.', 'ai-engine' ), |
| 68 | MAX_TOKENS: __( 'The maximum number of tokens to generate. The model will stop generating once it hits this limit.', 'ai-engine' ), |
| 69 | 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' ), |
| 70 | USAGE: __( 'Keeps track of the current usage of the AI.', 'ai-engine' ), |
| 71 | } |
| 72 | |
| 73 | i18n.SETTINGS = { |
| 74 | 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' ), |
| 75 | MODULES_INTRO: __( 'To avoid cluttering the UI and your WP, only enable the features you need.', 'ai-engine' ), |
| 76 | } |
| 77 | |
| 78 | i18n.CHATBOT = { |
| 79 | INTRO: __( 'If you only need one chatbot, set your parameters in the Chatbot Builder, and click on <b>Set as Default Parameters</b>. You can then use the shortcode <b>[mwai_chat]</b> anywhere on your website. You can also add the chatbot everywhere automatically by using <b>Inject Default Chatbot</b>.', 'ai-engine' ), |
| 80 | INTRO_2: __( 'You can have multiple chatbots on your website (or same page), each with different parameters. Setting an ID will memorize the conversation in the browser, Content Aware will make the content of your page available to the context (<a href="https://meowapps.com/ai-engine/tutorial/#content-aware-bot" target="_blank">read this</a>), and removing the AI Name and User Name will switch to avatars (similar to ChatGPT). Enjoy! 😎', 'ai-engine' ), |
| 81 | CHATBOT_BUILDER: __( 'Chatbot Builder', 'ai-engine' ), |
| 82 | RESET_PARAMS: __( 'Reset Parameters', 'ai-engine' ), |
| 83 | } |
| 84 | |
| 85 | i18n.CONTENT_GENERATOR = { |
| 86 | 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' ), |
| 87 | } |
| 88 | |
| 89 | i18n.TEMPLATES = { |
| 90 | TEMPLATES: __( 'Templates', 'ai-engine' ), |
| 91 | DELETE_CONFIRM: __( 'Are you sure you want to delete this template?', 'ai-engine' ), |
| 92 | NEW_TEMPLATE_NAME: __( 'New Template', 'ai-engine' ), |
| 93 | EDIT: __( 'EDIT', 'ai-engine' ), |
| 94 | 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' ), |
| 95 | } |
| 96 | |
| 97 | i18n.PLAYGROUND = { |
| 98 | 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' ), |
| 99 | PROMPT: __( 'Query / Prompt', 'ai-engine' ), |
| 100 | ANSWER: __( 'Answer', 'ai-engine' ), |
| 101 | } |
| 102 | |
| 103 | export default i18n; |
| 104 |