Customize Answers translation

Hi,

I am trying to customize a Spanish translation. I have overridden the theme through the Jambo command and this has created an es.po file in the Translations folder where I have done the customization.

Then I have referenced the new file in the locale_config.json but neither in the preview nor saving and publishing the change do I see the customization.

Could I be forgetting a step?

Thanks!

Best,

David

Hey David! It looks like you’re a user on a few different accounts and it’ll be helpful to know the specific one you’re using in order to troubleshoot this. I’ll DM you for that info and we’ll go from there!

For the record, at a high level you’re doing all good things so far! Other things to check for include:

  • add the language code path to the URL when previewing (if you’re on the universal search, add in “es/index.html” to the url so it would look something like this: [[uniqueHash]]livepreview.sandboxlandingpagespreview.com/es/index.html.)

  • make sure you are pointing to the correct experienceKey (should be unique to this locale/language)

  • add your universal search page if not yet done

  • add your verticals

  • when adding verticals, use the card template “multilang-location-standard”

This module assessment is a good guide/checklist to follow to ensure you have all the necessary components in place.

Hi Katja!

Thanks you for your response and help!

I only want to change the default spanish translate for this message of the No Results Card:

Is possible that I must to customize this default card too?

Thanks again!

Regards,

David

Hi David,

Yes, since the No Results Card uses a standard component, you’ll have to override that before you can change the translations.

You can follow Rose’s instructions in this Community post to customize the text of the No Results banner.

You’ll notice in Sherman’s reply that he was having trouble getting this to work on a German site. It looks like that has been resolved on our end and translations should now be built into the alternativeverticals.hbs file that you’ll use with your translation file. For example, here is a translation used in the German experience Sherman mentioned:

#: theme-components/vertical-full-page-map-alternative-verticals/alternativeverticals.hbs:3
msgid "<em class=\"yxt-AlternativeVerticals-noResultsInfo--emphasized\">No results found</em> in [[currentVerticalLabel]]."
msgstr "<em class=\"yxt-AlternativeVerticals-noResultsInfo--emphasized\">Keine Ergebnisse gefunden</em> in [[currentVerticalLabel]]."

Let us know if this works for you!

Hi Kristy!

Thank yoy very much for your help! It is working fine now! :slight_smile: :grinning: :grinning:

Best,

David