Skip to content
Main Navigation Guide
Chart API
Instance API
ProPreviewCustomizeSponsor
9.x Docs
8.x Docs

🇬🇧 English

🇨🇳 简体中文

🇬🇧 English

🇨🇳 简体中文

Appearance

Sidebar Navigation

init

dispose

version

registerLocale

getSupportedLocales

registerStyles

registerFigure

getSupportedFigures

getFigureClass

registerIndicator

getSupportedIndicators

registerOverlay

getSupportedOverlays

registerXAxis

registerYAxis

utils

On this page

registerLocale(locale, locales) ​

registerLocale used to custom locale.

Reference ​

typescript
(
  locale: string,
  locales: {
    time: string
    open: string
    high: string
    low: string
    close: string
    volume: string
    change: string
    turnover: string
    second: string
    minute: string
    hour: string
    day: string
    week: string
    month: string
    year: string
  }
) => void

Parameters ​

  • locale Locale name.
  • locales Locale configuration.

Returns ​

registerLocale returns undefined .

Usage ​

Using initialization ​

Dynamic settings ​

Edit this page on GitHub

Last updated:

Pager
Previous pageversion
Next pagegetSupportedLocales

Released under the Apache License V2.

Copyright © 2018-2025 liihuu