본문 바로가기

Never give up

검색하기
Never give up
프로필사진 대기만성 개발자

  • 분류 전체보기 (128)
    • Flutter (50)
    • WEB (27)
    • WebRTC (6)
    • HLS (4)
    • Three js (6)
    • 해왔던 삽질.. (35)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바