일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- gitops
- System Design
- AWS
- tenneling
- 시스템 설계
- Golines
- AWS Infra
- Live Template
- image resizing
- 알림 시스템
- 디자인패턴
- Buffered channel
- Kubernetes
- GoF
- 클래스 관계
- Logrus
- argocd
- Infra
- goroutine
- go
- GoF 디자인패턴
- 대규모 시스템 설계
- Helm V3
- UnBuffered channel
- Lambda@Edge
- notification system
- golang
- 컴포지트패턴
- 윈도우키보드
- Bastion Server
Archives
- Today
- Total
Fall in IT.
Create-react-app에서 Moment.js Locale이 적용되지 않는 문제 본문
CRA(create-react-app)을 사용한 프로젝트에서 Moment.js 모듈을 사용할때
Locale이 적용되지 않는 문제가 있습니다.
그 이유는, create-react-app에는 moment locale 설정이 추가되어 있지 않다고 합니다.
자세한 내용은 링크를 참조해주세요 : )
Moment.js의 locale 을 적용하기 위해서는 직접 import 해주면 됩니다.
import moment from "moment";
import "moment/locale/ko";
moment.locale("ko");
참조
https://stackoverflow.com/questions/49788259/moment-js-change-locale-not-working
'프레임워크 > React' 카테고리의 다른 글
리액트 컴포넌트를 절대경로로 임포트하는 방법 (0) | 2020.04.06 |
---|---|
[React/lodash] React에서 debounce 간단 사용방법 (2) | 2020.03.31 |
리액트 CRA 프로젝트에서 PORT 변경하는 방법 (0) | 2020.02.01 |
React HoC 개념과 간단 사용방법 (0) | 2020.01.11 |
React Error Target container is not a DOM element (0) | 2019.05.17 |
Comments