@inventivetalent/hi18n
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

hi18n

HTML internationalization

Uses the HTML tag's original text content as keys for loading translations from json files.

npm i @inventivetalent/hi18n

Demo: https://inventivetalent.org/hi18n-test/

<html>
    <body>
        <div>
            <span class="hi18n">Fowl stars lights dry green whales stars from signs.</span>
            <span class="hi18n">Be every his give grass dry fifth.</span>
            <span class="hi18n">Fly moving.</span>
            <span class="hi18n">May their made so lights darkness years.</span>
            <span class="hi18n">So gathering may from.</span>
            <span class="hi18n">Void signs man fowl fish moving.</span>
        </div>
        
        <script src="https://unpkg.com/@inventivetalent/hi18n@1.0.1/dist/bundle.js"></script>
        <script>
            new hi18n({
                auto: true // automatically translate on page load
            });
        </script>
    </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i @inventivetalent/hi18n

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

17.8 kB

Total Files

12

Last publish

Collaborators

  • inventivetalent