You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// import it to change locale and load localization messages
import { locale, loadMessages } from 'devextreme/localization';
import 'devextreme-intl';
// Load localized messages (English included by default)
const messagesDe = require('devextreme/localization/messages/de.json');
loadMessages(messagesDe);
// Set locale according the browser language
locale(navigator.language);
// ------------------ navigator.language is in IE and EDGE de-DE. In Chrome 'de'
Steps to Reproduce:
use locale(navigator.language); in IE or Edge with german languagesettings. navigator.language is 'de-DE' and does not work
use locale('de') in IE or Edge. This works for me.
Results You Received:
localization works only for 'de' not for 'de-DE'
Results You Expected:
Should work for 'de-DE' and 'de'
Environment Details:
Devextreme 17.1.5
InternetExplorer and Edge
The text was updated successfully, but these errors were encountered:
Thanks for the report. Currently, there is no built-in logic that determines a base locale for such cases. We'll research if it's possible to support this and make an update here.
Steps to Reproduce:
locale(navigator.language);
in IE or Edge with german languagesettings. navigator.language is 'de-DE' and does not worklocale('de')
in IE or Edge. This works for me.Results You Received:
localization works only for 'de' not for 'de-DE'
Results You Expected:
Should work for 'de-DE' and 'de'
Environment Details:
Devextreme 17.1.5
InternetExplorer and Edge
The text was updated successfully, but these errors were encountered: