@@ -21,6 +21,7 @@ import { prepareGravatar, isMaxMedia } from 'src/common/utils';
2121import { useEffect } from 'react' ;
2222import API from 'src/common/api' ;
2323import TagManager from 'react-gtm-module' ;
24+ import { isDev } from 'src/common/isDevEnvironment' ;
2425import { Changelog } from './Changelog' ;
2526import { useGetWorkspacesByWidProjectsQuery } from '../api' ;
2627import { getWorkspaceFromLS , saveWorkspaceToLs } from './cachedStorage' ;
@@ -142,6 +143,7 @@ export const Navigation = ({
142143 key : 'it' ,
143144 label : t ( '__APP_LANGUANGE_IT_TEXT' ) ,
144145 } ,
146+ ...( isDev ( ) && { ach : { key : 'ach' , label : 'Acholi' } } ) ,
145147 } ,
146148 currentLanguage : i18n . language ,
147149 feedbackTitle : t ( '__PROFILE_MODAL_FEEDBACK_TITLE' ) ,
@@ -158,11 +160,13 @@ export const Navigation = ({
158160 url : 'https://www.iubenda.com/privacy-policy/833252/full-legal' ,
159161 } ,
160162 onSelectLanguage : ( lang : string ) => {
161- if ( ! pathWithoutLocale ) return ;
163+ if ( pathWithoutLocale === false ) return ;
164+ if ( lang === i18n . language ) return ;
165+
162166 if ( lang === 'en' ) {
163167 document . location . href = pathWithoutLocale ;
164168 } else {
165- document . location . href = `/${ lang } / ${ pathWithoutLocale } ` ;
169+ document . location . href = `/${ lang } ${ pathWithoutLocale } ` ;
166170 }
167171 } ,
168172 onToggleChat : ( ) => {
0 commit comments