Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipmanlk/sinhala-sub-maker
Simple library to translate English srt subtitles to Sinhala
https://github.com/ipmanlk/sinhala-sub-maker
Last synced: 8 days ago
JSON representation
Simple library to translate English srt subtitles to Sinhala
- Host: GitHub
- URL: https://github.com/ipmanlk/sinhala-sub-maker
- Owner: ipmanlk
- License: mit
- Archived: true
- Created: 2020-02-08T13:55:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T03:40:52.000Z (over 2 years ago)
- Last Synced: 2024-10-29T02:09:59.774Z (22 days ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Sinhala Subtitle Maker
_Simple Library to translate English Srt Subtitles to Sinhala_### Usage
Download node from nodejs.org and install it, if you haven't already.Then install sinhala-sub-maker using npm or yarn.
```javascript
npm install @ipmanlk/sinhala-sub-maker --save
```You can translate any English srt file by providing its path.
```javascript
const { translate } = require("@ipmanlk/sinhala-sub-maker")translate("English.srt").then(siSub => {
//you can directly write siSub to a .srt file using fs
console.log(siSub);
});
```