Skip to content

Commit 5684524

Browse files
committed
fix: explicitly set lang for ydb-ui-components i18n
1 parent 3d6a8d3 commit 5684524

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/App/App.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import {connect} from 'react-redux';
33
import PropTypes from 'prop-types';
44

5+
import {i18n as YDBComponentsI18N} from 'ydb-ui-components/build/components/i18n';
56
import {I18N, i18n} from '../../utils/i18n';
67

78
import ContentWrapper, {Content} from './Content';
@@ -25,7 +26,7 @@ class App extends React.Component {
2526
constructor(props) {
2627
super(props);
2728
i18n.setLang(I18N.LANGS.en);
28-
I18N.setDefaultLang(I18N.LANGS.en); // for the peer dependency ydb-ui-components, should match the language above
29+
YDBComponentsI18N.setLang(I18N.LANGS.en);
2930
}
3031

3132
componentDidMount() {

0 commit comments

Comments
 (0)