Remix Starter screenshot

Remix Starter

Author Avatar Theme by Anandchowdhary
Updated: 17 Nov 2022
56 Stars

Starter for @remix-run with localized routing and i18n

Categories

Overview

Remix Starter is a Remix starter template that offers intuitive defaults for web development, including support for internationalization and localized URLs. The template aims to provide a hassle-free experience for developers trying out Remix, a web framework. It boasts features such as localized URLs, redirection, language selection, and dependency-free typed translation. Remix Starter is designed to optimize SEO and enhance internationalization for web applications.

Features

  • Localized URLs by default: Users are directed to URLs specific to their preferred language, following best practices for SEO and internationalization.
  • Redirection: Users are automatically redirected to their preferred language based on the Accept-Language header.
  • Language selection: Users can manually select their preferred language, which is remembered using cookies.
  • Language recommendation: If a user is directed to a version of the site in a language that is not their preferred choice, they are shown a language recommendation.
  • Dependency-free typed translation: The template includes an i18n.json file that contains all the translations needed for the application. The file is only bundled with the required translations for each page, ensuring optimal performance.

Installation

To install Remix Starter, follow these steps:

  1. Clone the repository:
git clone <repository-url>
  1. Install the dependencies:
npm install
  1. Build the app for production:
npm run build
  1. Start the app in production mode:
npm run start
  1. Choose a host to deploy the app to.

Alternatively, if you prefer using a template, you can create a new project using npx create-remix@latest and select a pre-configured template that suits your target server. Then, copy the app/ folder from your existing project to the new project.

Summary

Remix Starter is a Remix starter template that provides developers with a quick and easy way to get started with web development using Remix. It comes with a variety of useful features, including support for internationalization and localized URLs, redirection based on user preferences, and dependency-free typed translation. With Remix Starter, developers can build web applications that optimize SEO and offer a seamless experience for users across different languages. Installing the template is straightforward, and developers have the option to deploy their app using the built-in Remix app server or by choosing a host of their choice.