Elentra JS Documentation
1.2
1.2
  • Elentra JS Documentation
  • 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
  • Introduction
  • Example
  1. Guide
  2. Internationalization
  3. ESCL
  4. Function Reference

UCFIRST

Introduction

The UCFIRST function converts the first letter of the given text to uppercase. It accepts a single parameter for the string to be formatted.

Example

In this example, my_formatted_string calls the UCFIRST function, passing in the resource identifier my_string as its argument. Instead of a string resource identifier, you may also pass a term or variable identifier.

ESCL Input
my_string: `hello, world!`,
my_formatted_string: `{ UCFIRST(my_string) }`
ESCL Output
<!-- my_formatted_string -->
<strong>Hello, world!</strong>
PreviousLINKNextPlugins

Last updated 6 years ago