mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Date formatting using locale.
This commit is contained in:
parent
987fdfd57d
commit
ff854150ae
7 changed files with 48 additions and 36 deletions
|
|
@ -2,17 +2,11 @@ import React, { useEffect } from 'react';
|
|||
import { IntlProvider } from 'react-intl';
|
||||
import { Provider, useDispatch, useSelector } from 'react-redux';
|
||||
import { useStore } from 'redux/store';
|
||||
import { updateApp } from 'redux/actions/app';
|
||||
import { messages } from 'lib/lang';
|
||||
import 'styles/variables.css';
|
||||
import 'styles/bootstrap-grid.css';
|
||||
import 'styles/index.css';
|
||||
import en from 'lang-compiled/en.json';
|
||||
import cn from 'lang-compiled/zh-CN.json';
|
||||
import { updateApp } from '../redux/actions/app';
|
||||
|
||||
const messages = {
|
||||
en,
|
||||
'zh-CN': cn,
|
||||
};
|
||||
|
||||
const Intl = ({ children }) => {
|
||||
const dispatch = useDispatch();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue