https://github.com/bodrovis/lokalise-node-file-exchange-samples
Samples for the lokalise-node-file-exchange.
https://github.com/bodrovis/lokalise-node-file-exchange-samples
lokalise lokalise-api
Last synced: about 2 months ago
JSON representation
Samples for the lokalise-node-file-exchange.
- Host: GitHub
- URL: https://github.com/bodrovis/lokalise-node-file-exchange-samples
- Owner: bodrovis
- Created: 2024-12-13T15:52:59.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-04-01T17:39:12.000Z (2 months ago)
- Last Synced: 2025-04-01T17:46:46.840Z (2 months ago)
- Topics: lokalise, lokalise-api
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lokalise file exchange samples
Samples for the [lokalise-node-file-exchange](https://github.com/bodrovis/lokalise-node-file-exchange). Find the usage examples under the `src/` directory.
* `src/upload.ts`: Samples for [uploading](https://github.com/bodrovis/lokalise-node-file-exchange?tab=readme-ov-file#performing-translation-file-uploads) files to Lokalise
* `src/download.ts`: Samples for [downloading](https://github.com/bodrovis/lokalise-node-file-exchange?tab=readme-ov-file#performing-translation-file-downloads) files from Lokalise## Running sample code
1. Check [prerequisites](https://github.com/bodrovis/lokalise-node-file-exchange?tab=readme-ov-file#prerequisites), complete all the necessary preparations and run `npm install`.
2. Copy `.env.sample` as `.env` and provide your Lokalise API token and project ID inside.
3. Run `npm run upload` to upload files.
4. Run `npm run download` to download files.
5. These scripts interact with production, so ensure you're experimenting with a demo project.## License
Licensed under BSD 3 Clause.
(c) [Ilya Krukowski](https://bodrovis.tech/)