Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ipmanlk/sinhala-sub-maker

ipmanlk111.3.1

Translate English subtitle to Sinhala

sinhala, subtitle, baiscopelk

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.

npm install @ipmanlk/sinhala-sub-maker --save

You can translate any English srt file by providing its path.

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); 
});