판교너굴맨의 개발노트

  • 홈
  • 태그
  • 방명록

다국어 1

[React] i18next 라이브러리로 다국어 처리하기

사내 제품의 다국어 처리를 맡게 되어 i18next 라이브러리를 적용하게 되었다. 쉽고 간단하게 사용할 수 있으며, 내용을 작성해 두면 다음에도 유용하게 사용할 수 있을 것 같다. 1. i18next란? 자바스크립트 환경을 위한 국제화 라이브러리 2. 사용 방법 1. 라이브러리 설치 # npm npm install i18next react-i18next # yarn yarn add i18next react-i18next 2. 디렉터리 구조 PATH: src/i18n/ i18n/index.ts: 다국어 초기화 설정 파일 i18n/locales: locales별 JSON 파일 ( locales 또는 translation 이름 사용) 3. JSON 파일 생성 각 locale에 맞는 JSON 파일 생성 # en..

React 2024.01.19
1
더보기
프로필사진

공지사항

  • Github
  • 분류 전체보기 (77)
    • JavaSctipt (11)
    • React-native (12)
    • React (16)
    • node.js (13)
    • Vue.js (3)
    • Backend (7)
    • 개발공부 & Network & OS (5)
    • Git & Etc (7)
    • 자료구조 & 알고리즘 (3)

Tag

NVM, git, react-i18next, Map, React Native Testing Library, socket, React Native, Vue, react-native, Firebase, node, Android, eslint, 열결리스트, nodejs, nodemon, Javascript, react native cli, TypeScript, react,

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바