Warning
You are viewing the technical documentation for the Sharetribe Developer Platform. If you are looking for our no-code documentation, see our new help center.

Last updated

Change template texts

This guide gives an overview how to change the user interface texts in the Sharetribe Web Template.

Table of Contents

The template has several types of texts that can be read in the user interface. In addition to marketplace texts, the template also has content pages, as well as some other groups of content that can be configured in the code base.

Marketplace texts

In the Sharetribe Web Template, user-facing content is not written directly into the source code. Instead, the source code uses

React Intl message formatting that defines keys for each meaningful piece of content, and a translator or a content creator can then define the message (i.e. the value) for each key in their language. Read more about how Sharetribe handles marketplace texts.

By default, the template use built-in language-specific marketplace text files to show messages in the UI. However, starting in 2022-05, operators can also modify marketplace texts in Sharetribe Console using hosted marketplace text assets. The built-in marketplace texts are merged with the hosted marketplace texts in the template, so you can use both ways of managing marketplace texts. Read more about how to modify built-in marketplace texts in the template and how hosted marketplace texts work in the template.

You may also want to change the language of the user interface entirely. Read more about changing the language used in the template.

In addition to marketplace texts, there are other forms of content in the client applications that operators may need to manage.

Content pages

Your marketplace also has some content pages that can be modified through Sharetribe Console. The default content pages include

  • About
  • Landing page
  • Privacy Policy
  • Terms of Service

These pages are rendered by the PageBuilder component in the template. In addition to these default pages, you can create your own content pages through Sharetribe Console, and fully manage their content without code changes. On the template side, you can modify how that content is displayed.

Static pages

It is possible to create fully static pages in the Sharetribe Web Template. You might want to do this if you e.g. want to create static content pages for performance reasons.

More information about adding static content to the application can be found in the How to add static pages in the template guide.

Labels and countries

There are few other cases where we haven't added marketplace texts directly to the marketplace text files.

Labels for filters can be found in config/configListing.js, and edited in Console.

Country codes are in a separate file as well. Stripe API requires country information as ISO 3166-1 alpha-2 codes. These are used when billing address is asked in StripePaymentForm on CheckoutPage.

└── src
    └── translations
        └── countryCodes.js