Language Translations

Internationalization support

Language Detection & Routing

๐ŸŒ

Auto-Detection

Browser language header (navigator.language) automatically redirects users

๐Ÿ’พ

Preference Storage

User selections saved to localStorage.langPreference

๐Ÿ”„

Manual Override

Language selector in footer allows manual switching

Top 10 Languages

๐Ÿ‡บ๐Ÿ‡ธ

English (US)

en-us
Primary
Markets: United States, Global Default
๐Ÿ‡ฌ๐Ÿ‡ง

English (UK)

en-gb
Active
Markets: United Kingdom, Ireland
๐Ÿ‡ฉ๐Ÿ‡ช

German

de-de
Active
Markets: Germany, Austria, Switzerland
๐Ÿ‡ซ๐Ÿ‡ท

French

fr-fr
Active
Markets: France, Belgium, Luxembourg
๐Ÿ‡ช๐Ÿ‡ธ

Spanish (Spain)

es-es
Active
Markets: Spain
๐ŸŒŽ

Spanish (Latin America)

es-la
Active
Markets: Latin America, Mexico
๐Ÿ‡ง๐Ÿ‡ท

Portuguese (Brazil)

pt-br
Active
Markets: Brazil
๐Ÿ‡ฏ๐Ÿ‡ต

Japanese

ja-jp
Active
Markets: Japan
๐Ÿ‡จ๐Ÿ‡ณ

Chinese (Simplified)

zh-cn
Active
Markets: Mainland China
๐Ÿ‡ฐ๐Ÿ‡ท

Korean

ko-kr
Active
Markets: South Korea

Additional Locales

en-ca (Canada)en-au (Australia)en-in (India)it-it (Italy)pl-pl (Poland)ru-ru (Russia)zh-tw (Taiwan)zh-hans-cn (China Simplified)nl-nl (Netherlands)sv-se (Sweden)vi-vn (Vietnam)th-th (Thailand)id-id (Indonesia)tr-tr (Turkey)

URL Structure

Standard Pattern

www.cloudflare.com/[locale]/[path]

Examples:

  • /de-de/products/cdn/ - German CDN page
  • /ja-jp/learning/ - Japanese learning center
  • /pt-br/plans/ - Brazilian Portuguese pricing

Default Locale

www.cloudflare.com/[path]

No locale prefix = English (US)

  • /products/cdn/ - English CDN page
  • /learning/ - English learning center
  • /plans/ - English pricing

Implementation

Locale Detection Script

const requestedLang = window.navigator.language;
const acceptedLocales = ['en-us', 'en-gb', 'de-de', 'fr-fr', 'es-es', 'es-la', 'pt-br', 'ja-jp', 'zh-cn', 'ko-kr'];

if (requestedLang && requestedLang.toLowerCase() !== "en-us") {
  const langCode = requestedLang.toLowerCase().replace('_', '-');
  if (acceptedLocales.includes(langCode)) {
    window.location.replace('/' + langCode + window.location.pathname);
  }
}

LocalStorage Preference

// Save user language preference
localStorage.setItem('langPreference', 'de-de');

// Read preference on page load
const savedLang = localStorage.getItem('langPreference');
if (savedLang && savedLang !== 'en-us') {
  // Redirect to localized version
  window.location.replace('/' + savedLang + window.location.pathname);
}

Translation Guidelines

โœ… Content Strategy

  • Translate all marketing pages
  • Localize pricing and plans
  • Adapt cultural references
  • Keep technical terms consistent

โœ… SEO Requirements

  • Hreflang tags for all locales
  • Localized meta descriptions
  • Country-specific keywords
  • Regional backlink strategy

โœ… Quality Assurance

  • Native speaker review
  • Cultural sensitivity check
  • Technical accuracy validation
  • Layout and formatting test

โœ… Maintenance

  • Sync with English updates
  • Regular content audits
  • Translation memory updates
  • Analytics tracking per locale

Locale Statistics

18+
Total Locales
10
Primary Languages
100%
Auto-Detection
~40%
Non-English Traffic