Theme check broken / Shopify injected locales

Hi,

I am encountering an error while running Shopify Theme Check, which outputs the following message:

 Check failure on line 358 in locales/en.default.json  
 [ValidJSON] Incorrect type. Expected "string".

The issue comes from this part of the locales/en.default.json file:

"shopify": {
  ...
 "payment": {
   "card_fields_unavailable_html": {
     "many": "Credit and debit card payments are not available at this time.<br> <a href=\"%{current_url}\">Refresh this page</a> or try another payment method."
   }
 }

Whenever I delete or modify this entry, it gets automatically regenerated, causing the error to persist.

This is problematic because keys ending with _html are expected to have a string value and NOT an object. This breaks the validation process during theme checks.

Currently, the only workaround I can think of is disabling the theme check for JSON files, but if there’s a better solution or a way to prevent this key from being regenerated incorrectly, it would be greatly appreciated.

Thank you for your help!