반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- babel
- Raycasting
- REST API
- react
- jszip
- web track
- KakaoMap
- typescript
- userevent_tracker
- Image Resize typescript
- swagger-typescript-api
- HLS
- Game js
- M3U8
- Babel standalone
- Three-fiber
- Flutter
- Excel
- uint16array
- segment
- uint8array
- code editor
- webrtc
- http live streaming
- hls.js
- Redux
- three.js
- node
- Prism.js
- html2canvas
Archives
- Today
- Total
목록localization (1)
Never give up

이번에 포트폴리오를 새로 만들면서 다국어 처리를 할 필요가 있었는데 라이브러리 없이 간단하게 만들어 봤습니다 상태관리 라이브러리를 사용하면 조금 더 코드가 간단해지는데 각각 사용하는 라이브러리가 다를테니 공용으로 사용할 수 있는 context api를 사용해서 해봤습니다 (ps. 필자는 zustand를 좋아합니다) src/localization/provider.tsx import React, { createContext, useState } from "react"; import { CONTEXT_TYPE, LANG_CODE, LANG_TYPE } from "src/utils/constants"; export const LocalizationContext = createContext( undefined )..
WEB
2023. 11. 18. 17:11