--- createdAt: 2025-12-30 updatedAt: 2026-05-31 title: "Fastify i18n - Complete guide to translate your app" description: "No more i18next. The 2026 guide to building a multilingual (i18n) Fastify app. Translate with AI agents and optimize bundle size, SEO and performances." keywords: - Internationalization - Documentation - Intlayer - Fastify - JavaScript - Backend slugs: - doc - environment - fastify applicationTemplate: https://github.com/aymericzip/intlayer-fastify-template history: - version: 8.9.0 date: 2026-05-04 changes: "Update Solid useIntlayer API usage to direct property access" - version: 7.6.0 date: 2025-12-31 changes: "Add init command" - version: 7.6.0 date: 2025-12-31 changes: "Initial history" --- # Translate your Fastify backend website using Intlayer | Internationalization (i18n) `fastify-intlayer` is a powerful internationalization (i18n) plugin for Fastify applications, designed to make your backend services globally accessible by providing localized responses based on the client's preferences. > See package implementation on GitHub: https://github.com/aymericzip/intlayer/tree/main/packages/fastify-intlayer ### Practical Use Cases - **Displaying Backend Errors in User's Language**: When an error occurs, displaying messages in the user's native language improves understanding and reduces frustration. This is especially useful for dynamic error messages that might be shown in front-end components like toasts or modals. - **Retrieving Multilingual Content**: For applications pulling content from a database, internationalization ensures that you can serve this content in multiple languages. This is crucial for platforms like e-commerce sites or content management systems that need to display product descriptions, articles, and other content in the language preferred by the user. - **Sending Multilingual Emails**: Whether it's transactional emails, marketing campaigns, or notifications, sending emails in the recipient’s language can significantly increase engagement and effectiveness. - **Multilingual Push Notifications**: For mobile applications, sending push notifications in a user's preferred language can enhance interaction and retention. This personal touch can make notifications feel more relevant and actionable. - **Other Communications**: Any form of communication from the backend, such as SMS messages, system alerts, or user interface updates, benefits from being in the user's language, ensuring clarity and enhancing the overall user experience. By internationalizing the backend, your application not only respects cultural differences but also aligns better with global market needs, making it a key step in scaling your services worldwide. ## Getting Started