Skip to content

Commit 2cec1e2

Browse files
committed
[Web] Fix locale action
1 parent 295ce01 commit 2cec1e2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/App/shared/actions/locale.action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const ACTION_TYPES = {
66

77
export const setLocale = locale => async dispatch => {
88
if (Object.keys(TranslatorContext.context.translations).indexOf(locale) === -1) {
9-
// const i18n = require(`../../../i18n/${locale}.json`);
10-
TranslatorContext.registerTranslations(locale, {});
9+
const i18n = require(`../../../i18n/${locale}.json`);
10+
TranslatorContext.registerTranslations(locale, i18n);
1111
}
1212
dispatch({
1313
type: ACTION_TYPES.SET_LOCALE,

src/App/shared/components/Header/Menus/profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const profileMenuItemsAuthenticated = (
1212
<span className="ml-2">Settings</span>
1313
</DropdownItem>
1414
<DropdownItem tag={Link} to="/profile/password">
15-
<FontAwesomeIcon icon="clock" />
15+
<FontAwesomeIcon icon="lock" />
1616
<span className="ml-2">Password</span>
1717
</DropdownItem>
1818
<DropdownItem tag={Link} to="/logout">

src/App/shared/utils/icon-loader.util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { faHeart } from '@fortawesome/free-solid-svg-icons/faHeart';
1414
import { faList } from '@fortawesome/free-solid-svg-icons/faList';
1515
import { faTasks } from '@fortawesome/free-solid-svg-icons/faTasks';
1616
import { faBook } from '@fortawesome/free-solid-svg-icons/faBook';
17-
import { faClock } from '@fortawesome/free-solid-svg-icons/faClock';
17+
import { faLock } from '@fortawesome/free-solid-svg-icons/faLock';
1818
import { faSignInAlt } from '@fortawesome/free-solid-svg-icons/faSignInAlt';
1919
import { faSignOutAlt } from '@fortawesome/free-solid-svg-icons/faSignOutAlt';
2020
import { faThList } from '@fortawesome/free-solid-svg-icons/faThList';
@@ -51,7 +51,7 @@ export const loadIcons = () => {
5151
faTasks,
5252
faBook,
5353
faHdd,
54-
faClock,
54+
faLock,
5555
faSignInAlt,
5656
faSignOutAlt,
5757
faWrench,

0 commit comments

Comments
 (0)