@lskjs/build-locales
v3.18.0
Published
CLI for build i18 locales from Google spreadsheet
Downloads
1,083
Maintainers
Keywords
Readme
LSK.js – build-locales
@lskjs/build-locales – CLI for build i18 locales from Google spreadsheet
Table of contents
⌨️ Install
# yarn
yarn i @lskjs/build-locales
# npm
npm i @lskjs/build-locales
модуль для работы с интернационализацией
Использование build-locales
$ @lskjs/build-locales --locales ru,en --link https://docs.google.com/spreadsheets/d/1_qVnTw1Cwb2Ziwta_N0p-V4_ptD6-ZypDvCIrnryNF/edit#gid=0 --dist ./locales
Обязательные опции:
--locales Одна или несколько локалей, приер: ru или ru,en или en
--link Одна или несколько ссылок, пример: --link url1 --link url2
--dist Место назначения, куда сгенерируются готовые локали
Примеры:
$ @lskjs/i18/build-locales --locales ru,en --link https://docs.google.com/spreadsheets/d/1_qVnTw1Cwb2Ziwta_N0p-V4_ptD6-ZypDvCIrnryNF/edit#gid=0 --dist ./locales
$ @lskjs/i18/build-locales --locales en --link https://docs.google.com/spreadsheets/d/1_qVnTw1Cwb2Ziwta_N0p-V4_ptD6-ZypDvCIrnryNF/edit#gid=0 --dist ./locales
$ @lskjs/i18/build-locales --locales ru,en --link https://docs.google.com/spreadsheets/d/1_qVnTw1Cwb2Ziwta_N0p-V4_ptD6-ZypDvCIrnryNF/edit#gid=0 --link https://docs.google.com/spreadsheets/d/1_qVnTw1Cwb2Ziwta_N0p-V4_ptD6-ZypDvCIrnryNF/edit#gid=0 --dist ./locales
📖 License
This project is licensed under the MIT License - see the LICENSE file for details
👥 Contributors
👏 Contributing
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b features/fooBar
) - Commit your changes (
git commit -am 'feat(image): Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request