반응형
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
- userevent_tracker
- react
- Prism.js
- Babel standalone
- code editor
- addPostFrameCallback
- swagger-typescript-api
- Game js
- Redux
- Flutter 3.0
- Completer
- node
- methodChannel
- REST API
- identifierForVender
- KakaoMap
- Dart 2.17.0
- babel
- typescript
- FirebaseAnalytics
- web track
- webrtc
- redux toolkit
- Image Resize typescript
- Three-fiber
- androidId
- Three js
- Flutter
- RouteObserver
- Raycasting
Archives
- Today
- Total
목록localization (1)
Never give up
React - localization without library
이번에 포트폴리오를 새로 만들면서 다국어 처리를 할 필요가 있었는데 라이브러리 없이 간단하게 만들어 봤습니다 상태관리 라이브러리를 사용하면 조금 더 코드가 간단해지는데 각각 사용하는 라이브러리가 다를테니 공용으로 사용할 수 있는 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