evershop icon indicating copy to clipboard operation
evershop copied to clipboard

[BUG] Fr language pack causes error on build

Open treoden opened this issue 9 months ago • 2 comments

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>

treoden avatar Mar 21 '25 08:03 treoden

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}"

MohamadDhaybi avatar Jun 10 '25 22:06 MohamadDhaybi

@treoden can I work on this?

AKakkar28 avatar Sep 23 '25 04:09 AKakkar28