flag-usaLocales, Main Locale, and Auto Redirect

Crimson uses a simple set of inputs to define what languages exist and what URLs they map to.

Locales

Locales

What it does Locales tells Crimson which languages you offer and which flags to display. You enter a comma-separated list in the format:

language-country

Examples

  • en-GB → English with UK flag

  • en-US → English with US flag

  • hi-IN → Hindi (India)

  • es-ES → Spanish (Spain)

How to fill it (recommended)

  • Use commas

  • Avoid extra spaces (keep it clean)

  • Choose country codes that match the audience you want to represent via the flag


Main Locale

Main Locale

What it does Main Locale tells Crimson which language is the default language of your site.

What to enter

  • A two-letter language code like:

    • en for English

    • hi for Hindi


Main Locale URL

Main Locale URL

What it does This is the root URL for your default language site, like:

https://www.example.com

Critical rule Crimson warns: do not add a trailing slash at the end of the Main Locale URL.

✅ Good:

  • https://example.com

❌ Avoid:

  • https://example.com/


Auto Redirect on Locale

triangle-exclamation
Redirect on locale setting in Code Injection

What it does If enabled, Crimson checks the visitor’s browser language and automatically sends them to the matching language site (if available).

Example behavior If you offer en, hi, es, and the visitor’s browser prefers Spanish:

  • they may be redirected to https://yourdomain.com/es

If you leave it OFF

  • everyone lands on your default language first

  • visitors can switch manually using the language selector

Last updated