evershop
evershop copied to clipboard
[BUG] Fr language pack causes error on build
When using fr language, the build process throws an error
{
"shop": {
"language": "fr"
}
}
ERROR in ./packages/evershop/src/modules/catalog/pages/frontStore/catalogSearch/General.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /evershop/packages/evershop/src/modules/catalog/pages/frontStore/catalogSearch/General.jsx: Unexpected token, expected "," (21:46)
19 | <div className="text-left ">
20 | <h1 className="search-name mt-10">
> 21 | {_(" Résultats de recherche pour "${keyword}"",{ keyword: key })}
| ^
22 | </h1>
23 | </div>
24 | </div>
I encountered the same problem. The issue came from the catalog.csv file line 6: Search results for "${keyword}", Résultats de recherche pour "${keyword}"
I fixed it by adding the backslashes as following: Search results for "${keyword}", Résultats de recherche pour "${keyword}"
@treoden can I work on this?