texts-translator


usage

add code below to body
        
            <script>
                // your graph.cool endpoint & prefix to filter
                const endpoint = 'https://api.graph.cool/simple/v1/cj2h6xd611xrp0174pjcmnmvh';
                const prefix = 'TEXTS_';
                window.TEXTS_DATA_URL = `https://wt-d71fe7bd72732c90d912b6d49c51e0d3-0.run.webtask.io/language?endpoint=${endpoint}&prefix=${prefix}`;
            </script>
            <script src="//texts-translator.surge.sh/texts-translator.js" defer></script>
        
    

ref


example


        
            <h3 data-text-id="TEXTS_TR_TITLE">
                loading...
                <small data-text-id="TEXTS_URL"></small>
            </h3>
            <span>TEXTS_TR_AUTHOR_EMAIL: </span>
            <span data-text-id="TEXTS_TR_AUTHOR_EMAIL"/>
            <br/>
            <span>TEXTS_TR_DESCRIPTION: </span>
            <span data-text-id="TEXTS_TR_DESCRIPTION"/>
        
    

loading...

TEXTS_TR_AUTHOR_EMAIL:
TEXTS_TR_DESCRIPTION:
TEXTS_TR_CODE: