[Bug]: Theme Check - locale keys with _html and pluralisation. #4589
Labels
Area: @shopify/theme
@shopify/theme package issues
moderate
lowest severity for theme related bug
Type: Bug
Something isn't working
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
It should be possible to use pluralisation with html keys without a
ValidJSON
error getting triggered.Actual behavior
A
ValidJSON
error is triggered.Verbose output
info ─────────────────────────────────────────────────────────────────────────
locales/en.default.json
Incorrect type. Expected "string".
208 "count_html": {
209 "one": "There is <span class="count">{{ count }} item",
210 "other": "There are <span class="count">{{ count }} items"
211 }
Reproduction steps
shopify theme check
The file is reported as invalid, however if you preview the theme the pluralisation clearly works.
Operating System
Mac OS Sonoma
Shopify CLI version (check your project's
package.json
if you're not sure)3.68.0
Shell
zsh
Node version (run
node -v
if you're not sure)No response
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: