Skip to main content

Content Customization Overview

PreLaunch allows you to easily customize all the text content in your application. This document will guide you through the different ways to modify content, from simple text changes to creating custom content components.

Translation Files

The primary way to customize text content is through the translation files located in the locales/ directory:

Customizing Text Content

To modify text content, edit the appropriate JSON file in the locales/en/ directory:

Page Content

Editing Page Content

Each page in your application has its own content. To modify page content, edit the corresponding page component:

Creating Custom Pages

You can create new pages by adding files to the app/ directory:
Don’t forget to add corresponding translations in locales/en/custom.json.

Components Content

Reusable Content Components

For content that appears in multiple places, you can create reusable components:
Then use it in your pages:

Dynamic Content

Content from API

For dynamic content that comes from an API, you can fetch data in your page components:

Content from CMS

If you’re using a CMS like Contentful, Sanity, or Strapi, you can integrate it to manage your content:

Markdown Content

PreLaunch supports Markdown content rendering for rich text content:
You can then use this component to display Markdown content:

SEO Content

Page Metadata

To customize SEO metadata for your pages, modify the metadata export in your page files:

Default Metadata

Default metadata is configured in the app/layout.tsx file and is derived from the config.ts file:

Privacy Policy and Terms of Service

For legal pages like Privacy Policy and Terms of Service, you can create dedicated page components:

Common Questions

First, add the new text as a key-value pair in the appropriate translation file (e.g., locales/en/common.json). Then, use the useTranslations hook to access and display the text in your component.
The translation system doesn’t directly support HTML tags. Instead, break down the content into smaller pieces or use components for more complex layouts. For rich text, consider using Markdown with the react-markdown package.
  1. Create a new file in the appropriate location in the app/ directory
  2. Add any required translation keys to your translation files
  3. Create your page component with the desired content and layout
  4. Use the useTranslations hook to access localized text

Multi-language Support

Learn how to add and manage multiple languages in your application

Configuration Documentation

Learn about the overall configuration of PreLaunch