Title: Cannot scan block.json files
Last modified: November 10, 2022

---

# Cannot scan block.json files

 *  [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/cannot-scan-block-json-files/)
 * I can add plugin source strings from PHP and JavaScript successfully, but there
   is no option in the plugin settings which allows me to specify that block.json
   files should be parsed. This is, however, possible using `wp i18n make-pot`, 
   so it would be great if this could be added to Loco Translate.
    -  This topic was modified 3 years, 7 months ago by [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/cannot-scan-block-json-files/#post-16186068)
 * Thanks for the suggestion. String extraction from JSON files is not supported,
   and JS parsing is severely limited.
 * I am not familiar with block.json or how it’s localised, but I generally recommend
   that `wp i18n make-pot` is used for script extraction, as [noted here](https://localise.biz/wordpress/plugin/manual/extracting#js).
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/cannot-scan-block-json-files/#post-16186119)
 * Thanks Tim. We’ve been using JS and JSX extraction via Loco Translate in all 
   of our projects (themes and plugins) since 2020 and haven’t encountered any issues.
   If this isn’t a solution you’ll be progressing, I’ll be happy to find an alternative
   solution.
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/cannot-scan-block-json-files/#post-16186191)
 * I’d be happy to look at supporting JSON, but I was completely unaware this was
   a localisable format in WordPress. If you can post any useful links about this
   I will investigate.
 * I don’t plan to improve JavaScript extraction due to the many problems I run 
   into every time I look into it. When a better tool exists in the WordPress ecosystem
   I’d recommend using it, but I’m glad to hear my tool works for you.
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/cannot-scan-block-json-files/#post-16186205)
 * [https://awhitepixel.com/blog/how-to-translate-custom-gutenberg-blocks-with-block-json/](https://awhitepixel.com/blog/how-to-translate-custom-gutenberg-blocks-with-block-json/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Cannot scan block.json files’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

## Tags

 * [feature request](https://wordpress.org/support/topic-tag/feature-request/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/cannot-scan-block-json-files/#post-16186205)
 * Status: not resolved