Elentra JS Documentation
1.3
1.3
  • Elentra JS Documentation
  • What's New in Elentra JS 1.3?
  • Guide
    • Introduction
      • Standards & Principles
      • Integrating with ME v1.14.x
      • Upgrading to v1.2
      • Why EJS?
    • Architecture
      • Web APIs
    • Environments
      • Namespaces
      • Configuration
      • Entry Points
      • Bootstrapping
    • File Handling
      • Unified File Handling
      • Use Statement
    • Modules
      • Configuration
      • Components
      • Controllers
    • Routing
      • Logical Controllers
      • Routes
      • Route Collections
      • Path Matching
      • Path Generation
      • ViewLink Component
    • HTTP Library
      • REST Client
      • HTTP Client
    • Internationalization
      • Locales
      • Language Packs
      • ESCL
        • Concepts
          • Strings
          • Clauses
          • Variables
          • Terms
          • Functions
          • Literals (Preview)
        • Unicode
        • Function Reference
          • BOLD
          • ITALIC
          • LINK
          • UCFIRST
    • Plugins
      • Enabling a plugin
      • Core Plugins
        • Directives
          • v-i18n Directive
        • Instance Methods
          • $generatePath
          • $getRoute
          • $redirectTo
          • $setLocale
          • $translate
          • $findRouteByName (DEPRECATED)
        • Instance Objects
          • $api
    • Utilities
      • Throttle Utility
  • API Reference
Powered by GitBook
On this page
  1. Guide
  2. Plugins
  3. Core Plugins
  4. Instance Methods

$setLocale

Introduction

$setLocale(string localeCode) : void

The $setLocale instance method is used to set the active locale. Changing the active locale automatically loads the appropriate language packs and performs all necessary translations.

Previous$redirectToNext$translate

Last updated 6 years ago