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

🇬🇧 English

🇨🇳 简体中文

🇬🇧 English

🇨🇳 简体中文

Appearance

Sidebar Navigation

Started

Introduction

Quick Start

Basic

Style Configuration

Data Source

Internationalization

Environment

Hot Key

Advanced

Figure

Indicator

Overlay

Local Development

Others

9.x to 10.x

FAQ

Feedback

Changelog

On this page

🌏 Internationalization ​

Currently, the chart has two built-in en-US and zh-CN. The default language is en-US. If you need to use other languages, you can refer to the following scheme.

Adding new language ​

Adding new language is accomplished through klinecharts.registerLocale(key, locales).

For example, to add traditional Chinese language, you can do this,

typescript
klinecharts.registerLocale('zh-HK', {
  time: '時間:',
  open: '開:',
  high: '高:',
  low: '低:',
  close: '收:',
  volume: '量:',
  second: '秒',
  minute: '分鐘',
  hour: '小時',
  day: '天',
  week: '週',
  month: '月',
  year: '年'
})

Use new language ​

After adding new language, you can complete language switching through the chart API init(options) or setLocale(key).

Edit this page on GitHub

Last updated:

Pager
Previous pageData Source
Next pageEnvironment

Released under the Apache License V2.

Copyright © 2018-2025 liihuu