npm install i18next
npm install -D i18next-scanner
npm install -D google-spreadsheet
참고 자료가 많으니 적당한걸로 하나 찾아보자
{
"scan:i18n": "i18next-scanner --config i18next-scanner.config.js",
"upload:i18n": "npm run scan:i18n && node translate/upload.js",
"download:i18n": "node translate/download.js",
}
asset, credential 관련 ignore 설정 필수!
i18next-scanner.config.js 세팅
i18next.config.js 세팅
download.js, upload.js 세팅
https://meetup.nhncloud.com/posts/295
참고해서 변형하여 세팅함. 필요한 방식으로 만들면 되겠다!
세팅하고 잘 작동하느지 확인하면 끝난다.
build 시에 npm run download:i18n 추가하기
끝.