Documentation

    Documentation

    Documentation

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    1. /
    2. /Locale System

    Updated Jun 6, 20261 min listen

    1. /
    2. /Locale System

    Updated Jun 6, 20261 min listen

    1. /
    2. /Locale System

    Updated Jun 6, 20261 min listen

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Architecture
    Data Model
    Real Time
    Discovery Mutation Sync
    Security
    Backend Services
    k8s-postgres-fcm Mode
    Firebase Integration
    Features
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Wallet & Credit System
    Multi-Vendor Store
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payments Overview
    PaymentConductor
    SubscriptionConductor
    VideoConductor
    News Module - Digital Newspaper Experience
    Member Blogs
    Public Profile Pages
    Username Reservation System
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Branding
    Themes
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Examples
    Quick Start
    White Label
    Real World
    Integrations
    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Architecture
    Data Model
    Real Time
    Discovery Mutation Sync
    Security
    Backend Services
    k8s-postgres-fcm Mode
    Firebase Integration
    Features
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Wallet & Credit System
    Multi-Vendor Store
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payments Overview
    PaymentConductor
    SubscriptionConductor
    VideoConductor
    News Module - Digital Newspaper Experience
    Member Blogs
    Public Profile Pages
    Username Reservation System
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Branding
    Themes
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Examples
    Quick Start
    White Label
    Real World
    Integrations
    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Architecture
    Data Model
    Real Time
    Discovery Mutation Sync
    Security
    Backend Services
    k8s-postgres-fcm Mode
    Firebase Integration
    Features
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Wallet & Credit System
    Multi-Vendor Store
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payments Overview
    PaymentConductor
    SubscriptionConductor
    VideoConductor
    News Module - Digital Newspaper Experience
    Member Blogs
    Public Profile Pages
    Username Reservation System
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Branding
    Themes
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Examples
    Quick Start
    White Label
    Real World
    Integrations
    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Docs
    Features
    Docs
    Features
    Docs
    Features

    Locale System

    Ring Platform v1.6.0 centralizes locale configuration in lib/locale-config.ts (2026-05-28). One source drives routing, user preferences, SEO hreflang, static param generation, and the legacy browser gate.

    Environment variables

    bash
    
    NEXT_PUBLIC_SUPPORTED_LOCALES=en,uk,ru
    NEXT_PUBLIC_DEFAULT_LOCALE=en

    Comma-separated BCP-47 short codes must match folders under locales/.

    Import pattern

    typescript
    
    import {
      DEFAULT_LOCALE,
      SUPPORTED_LOCALES,
      isValidLocale,
      resolveLocale,
      type Locale,
    } from '@/lib/locale-config'

    Re-exports: i18n/shared.ts, lib/locale-pref.ts.

    Client navigation (canonical)

    • Never strip locale with regex on pathname in client components.
    • Use Link, useRouter, usePathname from @/i18n/routing.
    • Locale switch: persistRingLocalePreference(locale) + replaceLocalePath(router, pathname, locale) from lib/locale-pref.ts.

    Server / proxy

    • lib/proxy-intl.ts — shared helpers for localePrefix: 'as-needed'.
    • lib/seo-metadata.ts — pathnameWithoutLocale() for hreflang on raw URLs.
    • app/layout.tsx injects window.__RING_LOCALE_CONFIG__ for public/scripts/locale-tracking.js.

    Messages

    Translations load via i18n/request.ts → lib/i18n.ts buildMessages(locale, scope). Message scopes: lib/i18n/message-scopes.ts (ensure /editor routes include editor bundle).

    Related

    • Customization: localization
    • Architecture: proxy and intl

    Locale System

    Ring Platform v1.6.0 centralizes locale configuration in lib/locale-config.ts (2026-05-28). One source drives routing, user preferences, SEO hreflang, static param generation, and the legacy browser gate.

    Environment variables

    bash
    
    NEXT_PUBLIC_SUPPORTED_LOCALES=en,uk,ru
    NEXT_PUBLIC_DEFAULT_LOCALE=en

    Comma-separated BCP-47 short codes must match folders under locales/.

    Import pattern

    typescript
    
    import {
      DEFAULT_LOCALE,
      SUPPORTED_LOCALES,
      isValidLocale,
      resolveLocale,
      type Locale,
    } from '@/lib/locale-config'

    Re-exports: i18n/shared.ts, lib/locale-pref.ts.

    Client navigation (canonical)

    • Never strip locale with regex on pathname in client components.
    • Use Link, useRouter, usePathname from @/i18n/routing.
    • Locale switch: persistRingLocalePreference(locale) + replaceLocalePath(router, pathname, locale) from lib/locale-pref.ts.

    Server / proxy

    • lib/proxy-intl.ts — shared helpers for localePrefix: 'as-needed'.
    • lib/seo-metadata.ts — pathnameWithoutLocale() for hreflang on raw URLs.
    • app/layout.tsx injects window.__RING_LOCALE_CONFIG__ for public/scripts/locale-tracking.js.

    Messages

    Translations load via i18n/request.ts → lib/i18n.ts buildMessages(locale, scope). Message scopes: lib/i18n/message-scopes.ts (ensure /editor routes include editor bundle).

    Related

    • Customization: localization
    • Architecture: proxy and intl

    Locale System

    Ring Platform v1.6.0 centralizes locale configuration in lib/locale-config.ts (2026-05-28). One source drives routing, user preferences, SEO hreflang, static param generation, and the legacy browser gate.

    Environment variables

    bash
    
    NEXT_PUBLIC_SUPPORTED_LOCALES=en,uk,ru
    NEXT_PUBLIC_DEFAULT_LOCALE=en

    Comma-separated BCP-47 short codes must match folders under locales/.

    Import pattern

    typescript
    
    import {
      DEFAULT_LOCALE,
      SUPPORTED_LOCALES,
      isValidLocale,
      resolveLocale,
      type Locale,
    } from '@/lib/locale-config'

    Re-exports: i18n/shared.ts, lib/locale-pref.ts.

    Client navigation (canonical)

    • Never strip locale with regex on pathname in client components.
    • Use Link, useRouter, usePathname from @/i18n/routing.
    • Locale switch: persistRingLocalePreference(locale) + replaceLocalePath(router, pathname, locale) from lib/locale-pref.ts.

    Server / proxy

    • lib/proxy-intl.ts — shared helpers for localePrefix: 'as-needed'.
    • lib/seo-metadata.ts — pathnameWithoutLocale() for hreflang on raw URLs.
    • app/layout.tsx injects window.__RING_LOCALE_CONFIG__ for public/scripts/locale-tracking.js.

    Messages

    Translations load via i18n/request.ts → lib/i18n.ts buildMessages(locale, scope). Message scopes: lib/i18n/message-scopes.ts (ensure /editor routes include editor bundle).

    Related

    • Customization: localization
    • Architecture: proxy and intl