amCharts 5 comes with a set of locales. This pages shows how to load and use them.

What is a locale?

Locale brings in various region-specific settings, such as text prompt translations, date and number formats, etc.


Each locale is located in a separate file in locales folder. The file name comprises the syntax of language code (lowercase) + region code (uppercase). E.g. to load U.S. English, we would use file en_US.

import am5locales_en_US from "@amcharts/amcharts5/locales/en_US";
<script src="//cdn.amcharts.com/lib/5/locales/en_US.js"></script>


To apply the locale to the chart, simply set locale property of the root element:

root.locale = am5locales_en_US;
root.locale = am5locales_en_US;

Creating translations

Please refer to our "Creating translations" tutorial for more info.