PO to jed1.x JSON generator for WordPress JavaScript Translations

Use this tool to make WordPress ready JavaScript translation files from your po source. Here's the workflow:

  1. You create the .po file with all translations.
  2. Upload the po file using the tool below.
  3. Set locale, domain and handle.
  4. Click on Generate JSON.
  5. Place the generated JSON file where the call to wp_set_script_translations looks for.

Translation Tool

Access the translate tool below. Be sure to properly set the variables. Clicking the Generate JSON button will download the generated JSON file with proper filename.

Make WordPress compatible jed json from po

Example Script Translations Code Snippet

For the following code snippet

[php]
1function myplugin_register_scripts() {
2 wp_register_script(
3 'myplugin-js-app',
4 'src',
5 []
6 );
7 wp_set_script_translations(
8 'myplugin-js-app',
9 'myplugin-domain',
10 plugin_dir_path(
11 __FILE__
12 ) . 'languages'
13 );
14}

Copied!

The values will be:

  • Domain: myplugin-domain.
  • Handle: myplugin-js-app.
  • Locale Id: One of the WordPress Locale Code in the table below.

WordPress Locale Codes

Use /ctrl + F to search.

Language NameLanguage CodeWordPress Locale Code
Afrikaansafaf
Akanakak
Albaniansqsq
Amharicamam
Arabicarar
Armenianhyhy
Aromanianruprup_MK
Assameseasas
Azerbaijaniazaz
Azerbaijani (Turkey)az-traz_TR
Bashkirbaba
Basqueeueu
Belarusianbelbel
Bengalibnbn_BD
Bosnianbsbs_BA
Bulgarianbgbg_BG
Burmesemyamy_MM
Catalancaca
Catalan (Balear)balbal
Chinese (China)zh-cnzh_CN
Chinese (Hong Kong)zh-hkzh_HK
Chinese (Taiwan)zh-twzh_TW
Corsicancoco
Croatianhrhr
Czechcscs_CZ
Danishdada_DK
Dhivehidvdv
Dutchnlnl_NL
Dutch (Belgium)nl-benl_BE
Englishenen_US
English (Australia)en-auen_AU
English (Canada)en-caen_CA
English (UK)en-gben_GB
Esperantoeoeo
Estonianetet
Faroesefofo
Finnishfifi
French (Belgium)fr-befr_BE
French (France)frfr_FR
Frisianfyfy
Fulahfucfuc
Galicianglgl_ES
Georgiankaka_GE
Germandede_DE
German (Switzerland)de-chde_CH
Greekelel
Guaranígngn
Gujaratigugu_IN
Hawaiianhawhaw_US
Hazaragihazhaz
Hebrewhehe_IL
Hindihihi_IN
Hungarianhuhu_HU
Icelandicisis_IS
Idoidoido
Indonesianidid_ID
Irishgaga
Italianitit_IT
Japanesejaja
Javanesejvjv_ID
Kannadaknkn
Kazakhkkkk
Khmerkmkm
Kinyarwandakinkin
Kirghizkyky_KY
Koreankoko_KR
Kurdish (Sorani)ckbckb
Laololo
Latvianlvlv
Limburgishlili
Lingalalinlin
Lithuanianltlt_LT
Luxembourgishlblb_LU
Macedonianmkmk_MK
Malagasymgmg_MG
Malaymsms_MY
Malayalammlml_IN
Marathimrmr
Mingrelianxmfxmf
Mongolianmnmn
Montenegrinmeme_ME
Nepalinene_NP
Norwegian (Bokmål)nbnb_NO
Norwegian (Nynorsk)nnnn_NO
Oriyaoryory
Osseticosos
Pashtopsps
Persianfafa_IR
Persian (Afghanistan)fa-affa_AF
Polishplpl_PL
Portuguese (Brazil)pt-brpt_BR
Portuguese (Portugal)ptpt_PT
Punjabipapa_IN
Rohingyarhgrhg
Romanianroro_RO
Russianruru_RU
Russian (Ukraine)ru-uaru_UA
Rusynruerue
Sakhasahsah
Sanskritsa-insa_IN
Sardiniansrdsrd
Scottish Gaelicgdgd
Serbiansrsr_RS
Sindhisdsd_PK
Sinhalasisi_LK
Slovaksksk_SK
Slovenianslsl_SI
Somalisoso_SO
South Azerbaijaniazbazb
Spanish (Argentina)es-ares_AR
Spanish (Chile)es-cles_CL
Spanish (Colombia)es-coes_CO
Spanish (Mexico)es-mxes_MX
Spanish (Peru)es-pees_PE
Spanish (Puerto Rico)es-pres_PR
Spanish (Spain)eses_ES
Spanish (Venezuela)es-vees_VE
Sundanesesusu_ID
Swahiliswsw
Swedishsvsv_SE
Swiss Germangswgsw
Tagalogtltl
Tajiktgtg
Tamazight (Central Atlas)tzmtzm
Tamiltata_IN
Tamil (Sri Lanka)ta-lkta_LK
Tatartttt_RU
Telugutete
Thaithth
Tibetanbobo
Tigrinyatirtir
Turkishtrtr_TR
Turkmentuktuk
Uighurugug_CN
Ukrainianukuk
Urduurur
Uzbekuzuz_UZ
Vietnamesevivi
Walloonwawa
Welshcycy
Yorubayoryor

Source: WP Central

Start building beautiful forms!

Take the next step and get started with WPEForm today. You have the option to start with the free version, or get started with a trial. All your purchases are covered under 30 days Money Back Guarantee.