|
|
@@ -1,13 +1,13 @@
|
|
|
import React from 'react';
|
|
|
|
|
|
import i18next from 'i18next';
|
|
|
-
|
|
|
import { useTranslation, i18n } from 'next-i18next';
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
-import { useCsrfToken } from '~/stores/context';
|
|
|
import { i18n as i18nConfig } from '^/config/next-i18next.config';
|
|
|
|
|
|
+import { useCsrfToken } from '~/stores/context';
|
|
|
+
|
|
|
class InstallerForm extends React.Component {
|
|
|
|
|
|
constructor(props) {
|
|
|
@@ -96,7 +96,7 @@ class InstallerForm extends React.Component {
|
|
|
data-testid={`dropdownLanguageMenu-${locale}`}
|
|
|
className="dropdown-item"
|
|
|
type="button"
|
|
|
- onClick={() => { i18next.changeLanguage(meta.id) }}
|
|
|
+ onClick={() => { i18next.changeLanguage(locale) }}
|
|
|
>
|
|
|
{fixedT('meta.display_name')}
|
|
|
</button>
|