This repository was archived by the owner on Jan 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ import Loading from '../components/Loading';
1313import Box from '../muiComponents/Box' ;
1414import StyleBaseline from '../design-tokens/StyleBaseline' ;
1515import { Theme } from '../design-tokens/theme' ;
16+ import loadDayJSLocale from '../design-tokens/load-dayjs-locale' ;
1617
1718import AppContextProvider from './AppContextProvider' ;
1819import AppRoute , { history } from './AppRoute' ;
19- import loadDayJSLocale from './load-dayjs-locale' ;
2020
2121const StyledBox = styled ( Box ) < { theme ?: Theme } > ( ( { theme } ) => ( {
2222 backgroundColor : theme ?. palette . background . default ,
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import { ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';
33import { ThemeProvider as EmotionThemeProvider } from 'emotion-theming' ;
44import i18next from 'i18next' ;
55
6- import loadDayJSLocale from '../App/load-dayjs-locale' ;
7-
6+ import loadDayJSLocale from './load-dayjs-locale' ;
87import ThemeContext from './ThemeContext' ;
98import { getTheme , ThemeMode } from './theme' ;
109import useLocalStorage from './useLocalStorage' ;
Original file line number Diff line number Diff line change @@ -19,13 +19,7 @@ function loadDayJSLocale() {
1919 const fallbackLanguage = getFallFackLanguage ( ) ;
2020 const locale = i18n . language || fallbackLanguage ;
2121
22- switch ( locale . toLowerCase ( ) ) {
23- case 'en-us' :
24- {
25- require ( 'dayjs/locale/en' ) ;
26- dayjs . locale ( 'en' ) ;
27- }
28- break ;
22+ switch ( locale ?. toLowerCase ( ) ) {
2923 case 'pt-br' :
3024 {
3125 require ( 'dayjs/locale/pt-br' ) ;
@@ -69,6 +63,10 @@ function loadDayJSLocale() {
6963 }
7064 break ;
7165 default :
66+ {
67+ require ( 'dayjs/locale/en' ) ;
68+ dayjs . locale ( 'en' ) ;
69+ }
7270 break ;
7371 }
7472}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default {
4242 title : 'Verdaccio Dev UI' ,
4343 scope : '' ,
4444 filename : 'index.html' ,
45- verdaccioURL : '//localhost:4872 ' ,
45+ verdaccioURL : '//localhost:4873 ' ,
4646 template : `${ env . SRC_ROOT } /template/index.html` ,
4747 debug : true ,
4848 inject : true ,
You can’t perform that action at this time.
0 commit comments