CodeWP

CodeWP Now Officially Supports 11 Major Languages

By James LePage, CodeWP Founder
December 17, 2022
Contents

After weeks of testing and training, CodeWP now officially supports 11 major languages, alongside many others (while many likely work, they aren't yet officially supported).

What this means that you can prompt any mode available to you under CodeWP’s generator in your native language. Our userbase is global, and this change should make it much easier for many creators to interact with CodeWP.

CodeWP is Multilingual ✈️

Here's a list of all officially supported languages, as of Dec 2022.

  • English (all dialects)
  • Chinese
  • Spanish
  • Hindi
  • Arabic
  • French
  • Italian
  • Korean
  • Russian
  • Portuguese
  • Japanese

Thank you to all of our alpha testers for helping us train our models and languages other than English!

The support for these are basic. With future paid plans, we'll have the ability to toggle a DeepL translation mode, which may make non-English prompting even more accurate.

Example

A very popular generation is creating custom post types with related taxonomies in one go. Now, you can prompt it in your native language, and the labels will be automatically set to the input language.

Prompt(en):// Make a custom post type called "automobile", and add a custom taxonomy to it called "parts". Pre populate the taxonomy with 5 items - "doors, wheels, engines, hoods, windows".

function cwpai_custom_post_type() { $labels = array( 'name' => _x( 'Automobiles', 'post type general name' ), 'singular_name' => _x( 'Automobile', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Automobile' ), 'edit_item' => __( 'Edit Automobile' ), 'new_item' => __( 'New Automobile' ), 'all_items' => __( 'All Automobiles' ), 'view_item' => __( 'View Automobile' ), 'search_items' => __( 'Search Automobiles' ), 'not_found' => __( 'No automobiles found' ), 'not_found_in_trash' => __( 'No automobiles found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Automobiles' ); $args = array( 'labels' => $labels, 'description' => 'Holds our automobiles and automobile specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, ); register_post_type( 'automobile', $args ); } add_action( 'init', 'cwpai_custom_post_type' ); function cwpai_custom_taxonomies() { // Add new taxonomy, make it hierarchical (like categories) $labels = array( 'name' => _x( 'Parts', 'taxonomy general name' ), 'singular_name' => _x( 'Part', 'taxonomy singular name' ), 'search_items' => __( 'Search Parts' ), 'all_items' => __( 'All Parts' ), 'parent_item' => __( 'Parent Part' ), 'parent_item_colon' => __( 'Parent Part:' ), 'edit_item' => __( 'Edit Part' ), 'update_item' => __( 'Update Part' ), 'add_new_item' => __( 'Add New Part' ), 'new_item_name' => __( 'New Part Name' ), 'menu_name' => __( 'Parts' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, ); register_taxonomy( 'parts', 'automobile', $args ); } add_action( 'init', 'cwpai_custom_taxonomies', 0 ); function cwpai_add_terms() { wp_insert_term( 'Doors', // the term 'parts', // the taxonomy array( 'description'=> '', 'slug' => 'doors' ) ); wp_insert_term( 'Wheels', // the term 'parts', // the taxonomy array( 'description'=> '', 'slug' => 'wheels' ) ); wp_insert_term( 'Engines', // the term 'parts', // the taxonomy array( 'description'=> '', 'slug' => 'engines' ) ); wp_insert_term( 'Hoods', // the term 'parts', // the taxonomy array( 'description'=> '', 'slug' => 'hoods' ) ); wp_insert_term( 'Windows', // the term 'parts', // the taxonomy array( 'description'=> '', 'slug' => 'windows' ) ); } add_action( 'init', 'cwpai_add_terms' ); Generation ID:cmpl-6OX8fFG5Vt3PJMyk6KTttoM5bXPR6

Prompt(es):// Cree un tipo de entrada personalizado llamado "automóvil" y añádale una taxonomía personalizada llamada "piezas". Rellena previamente la taxonomía con 5 elementos: "puertas, ruedas, motores, capós y ventanas".

function cwpai_custom_post_type() { $labels = array( 'name' => _x( 'Automóviles', 'post type general name', 'cwpai' ), 'singular_name' => _x( 'Automóvil', 'post type singular name', 'cwpai' ), 'menu_name' => _x( 'Automóviles', 'admin menu', 'cwpai' ), 'name_admin_bar' => _x( 'Automóvil', 'add new on admin bar', 'cwpai' ), 'add_new' => _x( 'Añadir nuevo', 'automóvil', 'cwpai' ), 'add_new_item' => __( 'Añadir nuevo automóvil', 'cwpai' ), 'new_item' => __( 'Nuevo automóvil', 'cwpai' ), 'edit_item' => __( 'Editar automóvil', 'cwpai' ), 'view_item' => __( 'Ver automóvil', 'cwpai' ), 'all_items' => __( 'Todos los automóviles', 'cwpai' ), 'search_items' => __( 'Buscar automóviles', 'cwpai' ), 'parent_item_colon' => __( 'Automóvil padre:', 'cwpai' ), 'not_found' => __( 'No se han encontrado automóviles.', 'cwpai' ), 'not_found_in_trash' => __( 'No se han encontrado automóviles en la papelera.', 'cwpai' ) ); $args = array( 'labels' => $labels, 'description' => __( 'Descripción.', 'cwpai' ), 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'automovil' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ) ); register_post_type( 'automovil', $args ); } add_action( 'init', 'cwpai_custom_post_type' ); function cwpai_custom_taxonomy() { $labels = array( 'name' => _x( 'Piezas', 'taxonomy general name', 'cwpai' ), 'singular_name' => _x( 'Pieza', 'taxonomy singular name', 'cwpai' ), 'search_items' => __( 'Buscar piezas', 'cwpai' ), 'all_items' => __( 'Todas las piezas', 'cwpai' ), 'parent_item' => __( 'Pieza padre', 'cwpai' ), 'parent_item_colon' => __( 'Pieza padre:', 'cwpai' ), 'edit_item' => __( 'Editar pieza', 'cwpai' ), 'update_item' => __( 'Actualizar pieza', 'cwpai' ), 'add_new_item' => __( 'Añadir nueva pieza', 'cwpai' ), 'new_item_name' => __( 'Nombre de la nueva pieza', 'cwpai' ), 'menu_name' => __( 'Piezas', 'cwpai' ), ); $args = array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'pieza' ), ); register_taxonomy( 'pieza', array( 'automovil' ), $args ); } add_action( 'init', 'cwpai_custom_taxonomy', 0 ); function cwpai_add_terms() { wp_insert_term( 'puertas', 'pieza', array( 'description' => 'Piezas de puertas', 'slug' => 'puertas' ) ); wp_insert_term( 'ruedas', 'pieza', array( 'description' => 'Piezas de ruedas', 'slug' => 'ruedas' ) ); wp_insert_term( 'motores', 'pieza', array( 'description' => 'Piezas de motores', 'slug' => 'motores' ) ); wp_insert_term( 'capós', 'pieza', array( 'description' => 'Piezas de capós', 'slug' => 'capos' ) ); wp_insert_term( 'ventanas', 'pieza', array( 'description' => 'Piezas de ventanas', 'slug' => 'ventanas' ) ); } add_action( 'init', 'cwpai_add_terms' ); Generation ID:cmpl-6OXA27Epo1cp9HAgHksn8UbtZTkkJ

Prompt(ru):// Создайте пользовательский тип поста "автомобиль" и добавьте к нему пользовательскую таксономию "запчасти". Предварительно заполните таксономию 5 элементами - "двери, колеса, двигатели, капоты, окна".

function cwpai_create_custom_post_type() { register_post_type('car', array( 'labels' => array( 'name' => __('Cars'), 'singular_name' => __('Car') ), 'public' => true, 'has_archive' => true, 'supports' => array('title', 'editor', 'thumbnail', 'custom-fields'), 'taxonomies' => array('parts') ) ); } add_action('init', 'cwpai_create_custom_post_type'); function cwpai_create_custom_taxonomy() { register_taxonomy( 'parts', 'car', array( 'label' => __('Parts'), 'rewrite' => array('slug' => 'parts'), 'hierarchical' => true, ) ); } add_action('init', 'cwpai_create_custom_taxonomy'); function cwpai_add_terms_to_taxonomy() { wp_insert_term('doors', 'parts'); wp_insert_term('wheels', 'parts'); wp_insert_term('engines', 'parts'); wp_insert_term('hoods', 'parts'); wp_insert_term('windows', 'parts'); } add_action('init', 'cwpai_add_terms_to_taxonomy'); Generation ID:cmpl-6OXAiGiUfbuR5XUeXWQuy8enZf48p

(Russian understanding is about 60% when compared latin-root language prompts at the moment).

Prompt(ch):// 制作一个名为 "汽车 "的自定义帖子类型,并为其添加一个名为 "零件 "的自定义分类法。用5个项目预先填充分类法--"车门、车轮、发动机、引擎盖、车窗"。

function cwpai_custom_post_type() { $labels = array( 'name' => _x( 'Cars', 'post type general name' ), 'singular_name' => _x( 'Car', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Car' ), 'edit_item' => __( 'Edit Car' ), 'new_item' => __( 'New Car' ), 'all_items' => __( 'All Cars' ), 'view_item' => __( 'View Car' ), 'search_items' => __( 'Search Cars' ), 'not_found' => __( 'No cars found' ), 'not_found_in_trash' => __( 'No cars found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Cars' ); $args = array( 'labels' => $labels, 'description' => 'Holds our cars and car specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, ); register_post_type( 'car', $args ); } add_action( 'init', 'cwpai_custom_post_type' ); function cwpai_taxonomies_car() { $labels = array( 'name' => _x( 'Car Parts', 'taxonomy general name' ), 'singular_name' => _x( 'Car Part', 'taxonomy singular name' ), 'search_items' => __( 'Search Car Parts' ), 'all_items' => __( 'All Car Parts' ), 'parent_item' => __( 'Parent Car Part' ), 'parent_item_colon' => __( 'Parent Car Part:' ), 'edit_item' => __( 'Edit Car Part' ), 'update_item' => __( 'Update Car Part' ), 'add_new_item' => __( 'Add New Car Part' ), 'new_item_name' => __( 'New Car Part' ), 'menu_name' => __( 'Car Parts' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, ); register_taxonomy( 'car_part', 'car', $args ); } add_action( 'init', 'cwpai_taxonomies_car', 0 ); function cwpai_add_car_parts() { wp_insert_term( 'Doors', 'car_part', array( 'description' => 'A door is a moving structure used to block off, and allow access to, an entrance to or within an enclosed space, such as a building, room or vehicle.', 'slug' => 'doors' ) ); wp_insert_term( 'Wheels', 'car_part', array( 'description' => 'A wheel is a circular component that is intended to rotate on an axle bearing.', 'slug' => 'wheels' ) ); wp_insert_term( 'Engine', 'car_part', array( 'description' => 'An engine or motor is a machine designed to convert one form of energy into mechanical energy.', 'slug' => 'engine' ) ); wp_insert_term( 'Hood', 'car_part', array( 'description' => 'The hood or bonnet is the hinged cover over the engine of motor vehicles that allows access to the engine compartment for maintenance and repair.', 'slug' => 'hood' ) ); wp_insert_term( 'Windows', 'car_part', array( 'description' => 'A window is an opening in a wall, door, roof or vehicle that allows the passage of light and, if not closed or sealed, air and sound.', 'slug' => 'windows' ) ); } add_action( 'init', 'cwpai_add_car_parts' ); Generation ID:cmpl-6OXBkhsEYWmp4kuexy0pjLIq61prG

(Chinese understanding is good, but our models still cannot accurately output content for the language, so it currently defaults to English outputs).

PS: these prompts were automatically generated for this demonstration. If any are grammatically incorrect, please let us know!

This new feature, and dozens more
php
PHP, JS or jQuery
select_all
AI models trained for WordPress & popular plugins
switch_access_shortcut
Unlimited generations
card_giftcard
100% free trial
Start For Free
link