0.0.1 • Published 4 years ago

respresso-live-sync v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
4 years ago

Respresso livesync

const respressoLiveSyncClient  = new RespressoLiveSync({
    projectToken: '<your project token from respresso.json>', //keep in sync with respresso.json
    version: '<your version from respresso.json>' //keep in sync with respresso.json
});


respressoLiveSyncClient.onValueChangedListener = (values) => {
    console.log('Add new values to your i18 service', values)
}

Selection handler

respressoLiveSyncClient.enableDocumentSelectHandler();

//or

respressoLiveSyncClient.disableDocumentSelectHandler();

Configuration

configtypedescriptionmandatorydefault value
projectTokenstringtokenrequired
versionstringversionrequired
appNamestringdevice title for live editor pageoptionalRespresso WEB
frontendTokenstringcode from Live editor pageoptional
localizationLangstringlanguage (e.g: en)optional
objectLocalizationFormatbooleanlocalization formatoptionalfalse
enableDocumentSelectHandlerbooleanSelection handler for filteringoptionalfalse