DevExtreme jQuery/JS - UI Text Localization

DevExtreme UI text localization uses dictionaries from devextreme/localization/messages/<code>.json. Each dictionary contains over 800 localized strings.

A dictionary key (for example de, fr, zh-tw) is a BCP 47 language tag. If you set a region-qualified locale and no exact dictionary exists, DevExtreme resolves the locale through parent fallback and then to English (en). For example, de-AT resolves to de, and ca-ES resolves to ca.

Locale matching is case-insensitive. For example, zh-TW and zh-tw resolve to the same dictionary.

Use one of the following dictionary delivery formats:

  • <code>.json in module-based projects (Angular, Vue, React, or any bundler workflow).
  • dx.messages.<code>.js in script-tag projects (jQuery, CDN, or non-module setups).

Use the script-tag dictionary file and set the locale after the file is loaded:

HTML
  • <head>
  • <!-- DevExtreme library -->
  • <script src="https://cdn3.devexpress.com/jslib/26.1.6/js/dx.all.js"></script>
  • <!-- German dictionary -->
  • <script src="https://cdn3.devexpress.com/jslib/26.1.6/js/localization/dx.messages.de.js"></script>
  • </head>
  • <body>
  • <script>
  • DevExpress.localization.locale("de");
  • // ...
  • </script>
  • </body>

DevExtreme Dictionaries Reference

Codes and Tags

  • Code: the value passed to locale(code) and the top-level dictionary key.
  • BCP 47 Tag: a representative regional locale for the language.
  • Dictionary files are language-level files (de, fr, zh-tw).
  • Region-qualified locales resolve through fallback (de-AT -> de -> en).
  • Locale matching is case-insensitive (zh-TW and zh-tw resolve to the same dictionary).

Input and Layout Notes

  • RTL: right-to-left script. Enable mirrored layout with rtlEnabled: true.
  • IME: text usually uses an input method editor (CJK languages). Handle composition input in text validation and keystroke logic.

Available Dictionaries

Language FileLanguageCodeBCP 47 TagNote
ar.jsonArabicarar-SARTL
bg.jsonBulgarianbgbg-BG
ca.jsonCatalancaca-ES
cs.jsonCzechcscs-CZ
da.jsonDanishdada-DK
de.jsonGermandede-DE
el.jsonGreekelel-GR
en.jsonEnglishenen-USBase fallback locale
es.jsonSpanisheses-ES
fa.jsonPersian (Farsi)fafa-IRRTL
fi.jsonFinnishfifi-FI
fr.jsonFrenchfrfr-FR
hu.jsonHungarianhuhu-HU
it.jsonItalianitit-IT
ja.jsonJapanesejaja-JPIME
ko.jsonKoreankoko-KRIME
lt.jsonLithuanianltlt-LT
lv.jsonLatvianlvlv-LV
nb.jsonNorwegian Bokmalnbnb-NO
nl.jsonDutchnlnl-NL
pl.jsonPolishplpl-PL
pt.jsonPortugueseptpt-BRBrazilian Portuguese mapping
pt-BR.jsonPortuguese (Brazil)pt-BRpt-BRRegional dictionary
pt-PT.jsonPortuguese (Portugal)pt-PTpt-PTRegional dictionary
ro.jsonRomanianroro-RO
ru.jsonRussianruru-RU
sl.jsonSlovenianslsl-SI
sv.jsonSwedishsvsv-SE
tr.jsonTurkishtrtr-TR
uk.jsonUkrainianukuk-UA
vi.jsonVietnamesevivi-VN
zh.jsonChinese (Simplified)zhzh-CNIME
zh-CN.jsonChinese (Simplified, China)zh-CNzh-CNIME, regional dictionary
zh-Hans.jsonChinese (Simplified, Script)zh-Hanszh-HansIME, script dictionary
zh-tw.jsonChinese (Traditional)zh-twzh-TWIME
NOTE
DevExtreme includes these translations for convenience. Review and validate all translated strings before you use them in production. DevExpress does not guarantee that these translations are complete or free of linguistic errors, omissions, or inaccuracies. You are responsible for confirming that translations meet your requirements.

Dictionary Delivery Formats

DevExtreme ships each dictionary in two formats.

JSON (<code>.json)

Use this format in module-based projects.

TypeScript
  • import deMessages from 'devextreme/localization/messages/de.json';
  • import { loadMessages, locale } from 'devextreme/localization';
  •  
  • loadMessages(deMessages);
  • locale('de');

Script (dx.messages.<code>.js)

Use this format in script-tag and non-module projects.

HTML
  • <script src="https://cdn3.devexpress.com/jslib/<version>/js/dx.all.js"></script>
  • <script src="https://cdn3.devexpress.com/jslib/<version>/js/localization/dx.messages.de.js"></script>
  • <script>
  • DevExpress.localization.locale('de');
  • </script>

File Locations

FormPackagePath
<code>.jsondevextremedevextreme/localization/messages/<code>.json
dx.messages.<code>.jsdevextreme-distdevextreme-dist/js/localization/dx.messages.<code>.js
dx.messages.<code>.js (CDN)CDNhttps://cdn3.devexpress.com/jslib/<version>/js/localization/dx.messages.<code>.js

Create a New Dictionary

DevExtreme ships one message dictionary per language. To create a dictionary for a new language or a regional variant (for example fr-CA, en-GB, or de-CH), follow these steps:

  1. Copy a base dictionary file, for example fr.json.
  2. Rename the file with a BCP 47 tag, for example fr-CA.json.
  3. Change the top-level key in the dictionary from "fr" to "fr-CA".
  4. Translate or adjust messages for the target language/region.
  5. Load messages and set the locale to the same tag.

Use standard BCP 47 casing in file names and keys:

  • Language subtags: lowercase (fr, en, zh).
  • Region subtags: uppercase (CA, GB, TW).
  • Script subtags: title case (Hant).
NOTE
You can use modern LLM-based translation tools to generate a custom dictionary from an existing DevExtreme dictionary. This approach gives you a fast starting point for additional languages and dialects and can reduce localization effort. AI-generated translations can contain inaccuracies, inconsistencies, or context-related errors. Review and validate all generated strings before production use. You are responsible for final translation quality.

Add Strings to a Dictionary

Use loadMessages(messages) to add custom keys to one or more dictionaries. Use formatMessage(key, value) to retrieve the message for the active locale.

The following examples add the greetingMessage to English and German dictionaries.

JavaScript
HTML
  • $(function() {
  • const userName = "John";
  • DevExpress.localization.loadMessages({
  • "en": {
  • "greetingMessage": "Good morning, {0}!"
  • },
  • "de": {
  • "greetingMessage": "Guten Morgen, {0}!"
  • }
  • });
  • DevExpress.localization.locale(navigator.language);
  • $("#greeting").text(
  • DevExpress.localization.formatMessage("greetingMessage", userName)
  • );
  • });
  • <h1 id="greeting"></h1>

See this approach in the following demos:

Using Intl Demo Using Globalize Demo

Override Strings in a Dictionary

To override a message, find its key in a dictionary and load a new value for that key.

The following examples override two messages from the English dictionary:

JavaScript
  • $(function() {
  • DevExpress.localization.loadMessages({
  • "en": {
  • "dxDataGrid-editingDeleteRow": "Remove",
  • "dxDataGrid-editingUndeleteRow": "Recover"
  • }
  • });
  • DevExpress.localization.locale("en");
  • });