Skip to main content

Internationalization (i18n)

Ever Works is built with internationalization in mind, supporting multiple languages out of the box using next-intl.

๐ŸŒ Supported Languagesโ€‹

The template comes with built-in support for:

  • ๐Ÿ‡ฌ๐Ÿ‡ง English (en) - Default language
  • ๐Ÿ‡ซ๐Ÿ‡ท French (fr)
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish (es)
  • ๐Ÿ‡ฉ๐Ÿ‡ช German (de)
  • ๐Ÿ‡จ๐Ÿ‡ณ Chinese (zh)
  • ๐Ÿ‡ธ๐Ÿ‡ฆ Arabic (ar)
  • ๐Ÿ‡ง๐Ÿ‡ฌ Bulgarian (bg)
  • ๐Ÿ‡ณ๐Ÿ‡ฑ Dutch (nl)
  • ๐Ÿ‡ฎ๐Ÿ‡ฑ Hebrew (he)
  • ๐Ÿ‡ฎ๐Ÿ‡น Italian (it)
  • ๐Ÿ‡ต๐Ÿ‡ฑ Polish (pl)
  • ๐Ÿ‡ต๐Ÿ‡น Portuguese (pt)
  • ๐Ÿ‡ท๐Ÿ‡บ Russian (ru)

How It Worksโ€‹

URL-based Localizationโ€‹

Ever Works uses URL-based locale detection:

https://yoursite.com/en/about    โ†’ English
https://yoursite.com/fr/about โ†’ French
https://yoursite.com/es/about โ†’ Spanish

Automatic Locale Detectionโ€‹

The system automatically:

  1. Detects user's browser language
  2. Redirects to appropriate locale
  3. Remembers user's language preference
  4. Falls back to default language (English)

Translation Architectureโ€‹

Translation Filesโ€‹

Translations are stored in JSON files:

messages/
โ”œโ”€โ”€ en.json # English
โ”œโ”€โ”€ fr.json # French
โ”œโ”€โ”€ es.json # Spanish
โ”œโ”€โ”€ de.json # German
โ”œโ”€โ”€ zh.json # Chinese
โ””โ”€โ”€ ar.json # Arabic

Quick Exampleโ€‹

import { useTranslations } from 'next-intl';

export function MyComponent() {
const t = useTranslations('common');

return (
<div>
<h1>{t('welcome')}</h1>
<p>{t('description')}</p>
</div>
);
}

Featuresโ€‹

โœ… Complete Translation Coverageโ€‹

  • UI components
  • Form labels and validation messages
  • Email templates
  • Error messages
  • SEO metadata

โœ… RTL Supportโ€‹

  • Automatic RTL layout for Arabic and Hebrew
  • Mirrored UI elements
  • Proper text alignment

โœ… Date and Number Formattingโ€‹

  • Locale-specific date formats
  • Currency formatting
  • Number formatting

โœ… Pluralizationโ€‹

  • Automatic plural forms
  • Language-specific rules

Next Stepsโ€‹

Need Help?โ€‹

Check our support page for assistance with internationalization.