Gravatar for

Question by jtresidder, Dec 5, 2018 7:43 PM

Coveo for Sitecore globalize.culture javascript files

We have recently upgraded our clients solution from Coveo for Sitecore 3 to C4S 4.1. One thing that I'm noticing is 404's for files such as /coveo/js/cultures/globalize.culture.en-gb.js. It looks like these files were included in 3.0, but are largely absent in 4.1. These files contain information regarding currency, datetime formating, and a few other things.

Can anyone offer advice as to how I should proceed forward? Can I simply remove the references to these files without consequence? Or is there something else I need to do ensure the functionality that these files used to provide is still available?

Gravatar for

Comment by Jean-François L'Heureux, Dec 5, 2018 8:01 PM

Have you upgraded from the Legacy UI framework to Coveo for Sitecore Hive?

2 Replies
Gravatar for

Answer by Jean-François L'Heureux, Dec 5, 2018 8:34 PM

There is likely a missing step in the v3 to v4 upgrade guide. Your copies of `CoveoSearch.ascx`/`SearchView.cshtml` must be upgraded for the path to the culture files.

Here is the v4 script tag to load the culture file:

Web Forms:

<script type="text/javascript" src="/Coveo/js/cultures/<%= Model.CultureName %>.js"></script>


<script type="text/javascript" src="/Coveo/js/cultures/@(Model.CultureName).js"></script>

Gravatar for

Comment by jtresidder, Dec 5, 2018 9:01 PM

My primary concern is that there is no longer files for something such as "en-GB" or "fr-CA". In my cultures directory, this is what I have:

Is this going to cause issues with different currency symbols, date formats, etc?

Gravatar for

Answer by olamothe, Dec 12, 2018 7:57 PM

It is expected. In UI version 0.9, there were a lot more files than what was actually needed. They were removed in 1.0 when we settled on the list of language to support.

In this documentation, you will see the actual supported/built-in languages, which should match with the files that you have.

Ask a question